Get account balance and margin
Returns the current balance and margin requirement for a user, after any accepted withdrawals have been subtracted from balance. Requires an `Authorization: Bearer` SIWE token proving control of `user`; otherwise 401.
Returns the current balance and margin requirement for a user, after any
accepted withdrawals have been subtracted from balance. Requires an
Authorization: Bearer SIWE token proving control of user; otherwise 401.
bearer_authAuthorizationBearer <token>user*stringUser address in hex format (0x prefix optional)
Account balance and margin
application/json- response
Account-level collateral. The single source for balance/margin — they
deliberately do not also appear on [Position], where they would carry an
independent staleness.
balance*stringAccount collateral balance, micro-dollars (base-10 string; CASH_DENOMINATOR = 1e6 per $1)
margin*stringTotal account margin across all instruments, micro-dollars
user*stringUser address as 0x-prefixed lowercase hex
curl -X GET 'https://testnet-api.scalar.market/account/string'{
"balance": "string",
"margin": "string",
"user": "string"
}Cancel an order DELETE
Cancels a resting order by user, instrument, and client tag, and returns the executed quantity if it was partially filled. Requires an `Authorization: Bearer` SIWE token proving control of `user`; otherwise 401.
Get position and margin GET
Returns the current position, margin, and outstanding order sizes for a user address and instrument. Requires an `Authorization: Bearer` SIWE token proving control of `user`; otherwise 401.