get_transactions_by_user

get
Get transactions by user

https://api2.sushipro.io/?action=get_transactions_by_user
Request
Response
Request
Query Parameters
action
required
string
get_transactions_by_pair
address
required
string
User's address.
direction
required
string
DESC or ASC. DESC by default.
page
optional
integer
0 by default. 100 transactions maximum by page.
chainID
optional
integer
Network ID. 1 ( Ethereum ) by default.
Response
200: OK
Example: https://api2.sushipro.io/?action=get_transactions_by_user&chainID=1&address=0x4086e3e1e99a563989a9390facff553a4f29b6ee
[
{
"action": "get_transactions_by_user",
"chain": "Ethereum",
"number_of_results": 63,
"user": "0x4086e3e1e99a563989a9390facff553a4f29b6ee"
},
[
{
"timestamp": 1610052217,
"side": "SELL",
"pairID": "0x066f3a3b7c8fa077c71b9184d862ed0a4d5cf3e0",
"priceBase": 2101.5650727965,
"priceUSD": 2099.4961490519,
"volumeUSD": 3691.682179290393,
"txHash": "0x3a6932e5bd7f0b3c7e9e211c517f8338a38f11a26663fc4583fefff3a7f7c833",
"receiver": "0x4086e3e1e99a563989a9390facff553a4f29b6ee",
"maker": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",
"amountBase": 1.758365777883201,
"amountQuote": 3695.320104,
"tokenBase": "0x4b4d2e899658fb59b1d518b68fe836b100ee8958",
"tokenQuote": "0xdac17f958d2ee523a2206206994597c13d831ec7"
},
{
"timestamp": 1609881169,
"side": "SELL",
"pairID": "0x066f3a3b7c8fa077c71b9184d862ed0a4d5cf3e0",
"priceBase": 1664.6077527234,
"priceUSD": 1666.7849142626,
"volumeUSD": 1693.7643662140595,
"txHash": "0xf95971a746058b5236cd23a5601592299f6ce1522b32fa252e6de6f8ab796990",
"receiver": "0x4086e3e1e99a563989a9390facff553a4f29b6ee",
"maker": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",
"amountBase": 1.0161865227604068,
"amountQuote": 1691.551964,
"tokenBase": "0x4b4d2e899658fb59b1d518b68fe836b100ee8958",
"tokenQuote": "0xdac17f958d2ee523a2206206994597c13d831ec7"
},
{
"timestamp": 1609826402,
"side": "SELL",
"pairID": "0x066f3a3b7c8fa077c71b9184d862ed0a4d5cf3e0",
"priceBase": 1336.0961683934,
"priceUSD": 1342.2542490781,
"volumeUSD": 6868.807114653317,
"txHash": "0x713a953dc08d1ac3ef1a5a1450a7fe5353b52b027435b11acfd396c6f8b79708",
"receiver": "0x4086e3e1e99a563989a9390facff553a4f29b6ee",
"maker": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",
"amountBase": 5.117366638526966,
"amountQuote": 6837.293958,
"tokenBase": "0x4b4d2e899658fb59b1d518b68fe836b100ee8958",
"tokenQuote": "0xdac17f958d2ee523a2206206994597c13d831ec7"
}
]
]
404: Not Found
[
{
"action": "get_transactions_by_user",
"chain": "Ethereum",
"number_of_results": 0,
"error": "No data available",
"address": "0x4086e3e1e99a563989a9390facff553a3f29b6ee"
}
]

‚Äč