DustSweeper API [WIP]
Check open orders on DustSweeper
Get Wallet Information
GET
https://dustsweeper.com/api/[address]
returns address, portfolio with token status, and past orders
Path Parameters
Name
Type
Description
address*
String
takes one ethereum address
{
"address": "0x4bd75fd7b7417d56f7c7a527d60cddb380c4955a",
"portfolio": [
{
"token": {
"symbol": "USDT",
"contract_address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"status": "sweepable"//sweepable, approved, unsupported
},
"balance": {
"amount": 103,
"asset_type": "USDT",
"usd_value": 103.06413,
"eth_value": 0.05124258793437055
},
"quote_rate": 1.0006226,
"last_transferred_at": "2022-05-09T00:44:54Z",
"sweeping_value": { "usd": 72.144891, "eth": 0.03586981155405939 }
},
...
],
"past_orders": [
{
"blockNum": 14706660,
"time": "2022-05-03T19:59:02Z",
"erc20": {
"symbol": "YFI",
"address": "0x0bc529c00c6401aef6d220be8c6ea1667f6ad93e",
"amount": "0.006"
},
"hash": "0x450da6ea901b0d5d48f5ce3aeae64f62a5978aa8bebe1af5e8b170e3d2f5e06d",
"value": { "eth": "0.0261073722", "usd": 74.35802280915918 },
"ethPrice": 2848.1619
}...
]
}
Get All Orders:
GET
https://dustsweeper.com/api/all-orders
returns an array of all orders
{
"balance": "1.897615593157632046",
"symbol": "SUSHI",
"maker": "0x049569adb8a1e8a9349e9f1111c7b7993a4612eb",
"time": "2022-04-25T03:36:16Z",
"tx": "0xb912085c60490ff4aa794ef6e566f19a0b24390553e2ce9d93f75e6eaea71bd7"
}
Get Open Orders:
GET
https://dustsweeper.com/api/orders
returns an array of open orders
{
"balance": "18.978198959156383638",
"token": ["SNX", "0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f"],
"maker": "0x492af9a0b99fed66dce727bb96ad133db83cdaf6",
"time": "2022-03-17T04:52:12Z",
"tx": "0xab51abf54b7d5a3d9687077135e24a0e0e89a7f04a9335c44eec80bb12dce028"
}
Last updated