™️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.
DESC
Possible values: 10
0
createdAt
Possible values: Successful
Internal Server Error
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.
Successful
Unauthorized
Not Found
Internal Server Error
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.
Successful
Unauthorized
Not Found
Internal Server Error
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