API Reference
Wallet Trade History
Cursor-paginated trade history
Returns a wallet's recent trades with cursor-based pagination.
Note: the response is sanitized to remove the
imagefield.
Endpoint#
GET /wallet/trade-history/:wallet
Query Params (optional)#
| Param | Type | Description |
|---|---|---|
| cursor | string | Cursor for pagination |
Request (curl)#
curl -H "x-api-key: YOUR_KEY" \
"https://us-east.dritan.dev/wallet/trade-history/H8sH...Wallet"
Request (TypeScript, SDK)#
import { DritanClient } from "dritan-sdk";
const client = new DritanClient({ apiKey: "YOUR_KEY" });
const page1 = await client.getWalletTradeHistory("H8sH...Wallet");
console.log(page1.trades.length, page1.hasNextPage);
if (page1.nextCursor) {
const page2 = await client.getWalletTradeHistory("H8sH...Wallet", { cursor: page1.nextCursor });
console.log(page2.trades.length);
}