cURL
curl --request GET \ --url https://perp-api.phoenix.trade/trader/{authority}/collateral-history
{ "data": [ { "amount": 123, "collateralAfter": 123, "eventIndex": 123, "eventType": "<string>", "slot": 123, "slotIndex": 123, "timestamp": "2023-11-07T05:31:56Z", "traderPdaIndex": 123, "traderSubaccountIndex": 123 } ], "hasMore": true, "nextCursor": "<string>", "prevCursor": "<string>" }
Handles GET /trader/{authority}/collateral-history via public.trader.collateral_history.get.
GET /trader/{authority}/collateral-history
public.trader.collateral_history.get
Authority pubkey
x >= 0
Collateral history
Response for collateral event history queries
The data payload (array of items)
Show child attributes
Whether there are more results in the requested direction
Cursor for fetching older results
Cursor for fetching newer results