Use Query deposit to query the deposit transactions history for a user.

QueryDeposit


Request

KeyTypeValueRequired
typestringquerydepositYes
useridstringThe specified user to query the deposit transactions forOptional
lastfirstbooleanSpecify the sorting order of the returned dataOptional
maxreturnnumberSpecify the maximum number of deposit transactions to returnOptional
fromtimetimestampOptional

Response

KeyTypeValue
typestringquerydeposit
resultstring"OK" for successful queries. For unsuccessful queries, this field will be populated with the reason for the query rejection
securitystringThe trading pair used in the query
total_recnumberThe number of records in the data block array
data.timestring, POSIXTime of the transaction in POSIX time
data.rec_nonumberRecord index
data.traderefnostring
data.amountnumberThe deposit transaction amount
data.securitystringThe trading pair of the deposit
data.typestringwithdraw or deposit
data.hashstring
data.accountstring
# Request
{
	"fromtime": "1655784000000"
	"lastfirst": true
	"maxreturn": 100
	"type": "querydeposit"
	"userid": "[email protected]"
}

# Response - Success
{
  "result":"OK",
  "refno":"3XXF0329A0B0",
  "data": [{
    "rec_no":1,
    "type":"withdraw",
    "firm":"SYMB",
    "account":"[email protected]",
    "traderefno":"STAGEWEBSOCKET:[email protected]:1637313057457:1033",    
    "time":"1559505233085",
    "amount":".033",
    "security":"BTCUSD",
    "hash":"STAGEWEBSOCKET:[email protected]"
  }],
  "total_rec": 1,
  "security":"BTCUSD",
  "type":"querydeposit"
}