Order books
wallet.orders
A wallet's DeepBook balance managers with their balances, open orders and recent fills.
Details
- Endpoint
- GET /v1/wallet/:wallet/orders
- Credits
- 5
- Rate class
- Heavy. Counts against your heavy requests per second.
Finds the DeepBook v3 balance managers owned by the wallet, then returns for each one the coins it holds, its open orders across all pools and the fills where it was maker or taker. Open orders carry decimal price, quantity, filled and remaining size in base coin, side (bid or ask), status and expiry time. Fills are newest first, 20 per page by default, with a cursor for older ones. Balances are the free balances inside the manager, not funds locked in resting orders. Accepts an address or a name.sui.
Parameters
| Name | Type | Description |
|---|---|---|
| walletrequired | string | Owner address (0x...), a name.sui or an @name. |
| limit | integer | Fills per page, default 20.From 1 to 100. |
| cursor | string | Fills cursor from the previous page. |
Request
Send your key in the x-api-key header, or leave it out to use the keyless tier.
curl "https://api.tide.ad/v1/wallet/0xb5c5d547340849ac4f12c43f91f8321d0c5e76f0b25442fffae79d4e119fd928/orders?limit=10" \
-H "x-api-key: YOUR_API_KEY"const res = await fetch("https://api.tide.ad/v1/wallet/0xb5c5d547340849ac4f12c43f91f8321d0c5e76f0b25442fffae79d4e119fd928/orders?limit=10", {
headers: {
"x-api-key": process.env.TIDE_API_KEY!,
},
});
const data = await res.json();Response
{
"wallet": "0xb5c5d547340849ac4f12c43f91f8321d0c5e76f0b25442fffae79d4e119fd928",
"managers": [],
"fills": [],
"cursor": null
}