Recent fills
Build your request
Change the values and the command follows. The token is never typed here: the command reads it from the SPECTRE_LOCAL_API_TOKEN environment variable. Run it in your own terminal.
curl 'http://127.0.0.1:48180/v1/account/fills?connection_id=12&limit=50' \ -H "Authorization: Bearer $SPECTRE_LOCAL_API_TOKEN"
Fills of the connection, oldest first. The terminal keeps the last 1000 fills of a connection since the API was switched on.
bearerToken account:readAuthorizationBearer <token>The Local API token: spt_ and 64 hex characters. Copy it from Settings App → General → Local API. It is accepted only in the Authorization header. The names listed with an operation are the scopes it requires. The token of the terminal carries all of them.
Scope: account:read
connection_id*integerThe connection whose account to read.
int64limit?integerHow many of the last fills.
1 <= value <= 1000100since_ts?integerOnly fills at this exchange time or later. UTC milliseconds.
int64Fills of the connection.
application/json- response
connection_id*integerint64data*array<>curl 'http://127.0.0.1:48180/v1/account/fills?connection_id=12&limit=50' \ -H "Authorization: Bearer $SPECTRE_LOCAL_API_TOKEN"{ "connection_id": 12, "data": [ { "trade_id": "t1", "order_id": "987654321", "instrument": "binance:futures:BTCUSDT", "side": "buy", "price": "67000.1", "qty": "0.012", "fee": "0.32", "fee_currency": "USDT", "position_side": "long", "ts": 1730294400123 } ]}Balances GET
The last value the exchange sent for each currency since the API was switched on. The exchange sends a balance only when it changes, so a currency with no change since then is absent. `available` and `locked` are `null` when the exchange does not report them. `ts` is the exchange time, or the time of receipt when there is none.
Place an order POST
Places a limit or a market order. A repeat with the same `client_key` returns the previous answer and places no second order. The terminal remembers the last 1000 keys.