Market maker programmeAPI reference
Balances (own party)
The party is resolved from the API key; one account is bound to exactly one party, so no parameter is required or accepted. Reads the ledger: startup and slow timer only, never inside a quote loop.
GET
/balancesAuthorizationBearer <token>
Authorization: Bearer mm_ak_.. The part before the dot is a public handle, safe to log. The part after is the secret.
In: header
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/balances"{ "ok": true, "data": { "partyId": "string", "balances": [ { "asset": "CBTC", "available": "string", "locked": "string" } ], "available": { "property1": 0, "property2": 0 }, "locked": { "property1": 0, "property2": 0 }, "total": { "property1": 0, "property2": 0 }, "source": "calden-active-contracts", "asOf": { "updateId": 0 } }}Need help
Write to support@wolfedgelabs.com and include your party ID.