™️Trade
Needs Wallet Authentication
This route returns all the trades of the wallet.The route first queries the database for all the trades present based on the params provided.The route then returns the trades found.
direction
sortstring · enumOptionalDefault:
DESC
Possible values: Query parameters
limitnumberOptionalDefault:
10
offsetnumberOptionalDefault:
0
sortstring · enumOptionalDefault:
createdAt
Possible values: Responses
200
Successful
application/json
500
Internal Server Error
application/json
get
GET /api/v1/trades HTTP/1.1
Host: www.dyorbackend.tk
Accept: */*
{
"ok": true,
"result": {
"count": 10,
"trades": [
{
"id": "11839fbd-0b72-4704-86cb-04db0ca40a13",
"type": "deposit",
"status": "successful",
"amount": 1500014394
}
]
}
}
Needs Wallet Authentication
This route returns a specific trade of the wallet.The route first queries the database for trade present based on the hash provided.The route then returns the trade found.
Path parameters
hashstringRequired
Responses
200
Successful
application/json
401
Unauthorized
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
401001
application/json
401002
application/json
401003
application/json
401004
application/json
get
GET /api/v1/trade/hash/{hash} HTTP/1.1
Host: www.dyorbackend.tk
Accept: */*
{
"ok": true,
"result": {
"id": "11839fbd-0b72-4704-86cb-04db0ca40a13",
"hash": "0xc3e88985615871b642b47dee03e26a1704543a93456afa1f2fe029ca75b8404c",
"type": "deposit",
"network": "ethereum",
"status": "successful",
"amount": 1500014394,
"gasUsed": 1500014394,
"blockNumber": 1000001,
"isNativeTransfer": true,
"from": "0xfec8d8ad28af2b66c6b9b03977eee7056338bfe4",
"to": "0xfec8d8ad28af2b66c6b9b03977eee7056338bfe4",
"createdAt": "2022-06-09 14:58:48.172000 +00:00"
}
}
Needs Wallet Authentication
This route returns a specific trade of the wallet.The route first queries the database for trade present based on the Id provided.The route then returns the trade found.
Path parameters
tradeIdstringRequired
Responses
200
Successful
application/json
401
Unauthorized
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
401001
application/json
401002
application/json
401003
application/json
401004
application/json
get
GET /api/v1/trade/id/{tradeId} HTTP/1.1
Host: www.dyorbackend.tk
Accept: */*
{
"ok": true,
"result": {
"id": "11839fbd-0b72-4704-86cb-04db0ca40a13",
"hash": "0xc3e88985615871b642b47dee03e26a1704543a93456afa1f2fe029ca75b8404c",
"type": "deposit",
"network": "ethereum",
"status": "successful",
"amount": 1500014394,
"gasUsed": 1500014394,
"blockNumber": 1000001,
"isNativeTransfer": true,
"from": "0xfec8d8ad28af2b66c6b9b03977eee7056338bfe4",
"to": "0xfec8d8ad28af2b66c6b9b03977eee7056338bfe4",
"createdAt": "2022-06-09 14:58:48.172000 +00:00"
}
}
Last updated