Paper trading

Closed-trade ledger

Full closed-trade history with paging - /positions is capped at 100, this pages through the whole retention window. Follow next_before for the next page.

get/api/bot/v1/trades

Request

  • Base URL: https://marginpad.io
  • URL: https://marginpad.io/api/bot/v1/trades
  • Auth: API key in header X-API-Key

Query parameters

limitstring

1-500, default 100.

beforestring

Cursor: unix ms from next_before.

Response

ok

countinteger
next_beforeinteger nullable

Cursor for the next page; null when there are no more.

retention_daysinteger

Example response

{
  "retention_days": 30
}

Changes

No recorded changes to this operation across all 1 revision of this API.