Account
Authorizations
AuthorizationstringRequired
Compact signature envelope. Only keccak256 + secp256k1 are supported.
Authorization: Bondis alg=<secp256k1-keccak-eip712|secp256k1-keccak-raw>, h=<0x..>, sig=<0x..>
- Default
algissecp256k1-keccak-eip712. hiskeccak256(CRR)of the Canonical Request Representation.sigsignsh.
Path parameters
accountIdstringRequired
Responses
200
Balances
application/json
401
Unauthorized
application/json
get
/accounts/{accountId}/balancesGET /v1/accounts/{accountId}/balances HTTP/1.1
Host: api.bondis.xyz
Authorization: YOUR_API_KEY
Accept: */*
{
"account": "A123",
"balances": [
{
"asset": "USDt",
"available": "12500.00",
"total": "15000.00",
"reserved": "2500.00"
},
{
"asset": "BRLt",
"available": "5000.00",
"total": "5000.00",
"reserved": "0"
}
]
}Authorizations
AuthorizationstringRequired
Compact signature envelope. Only keccak256 + secp256k1 are supported.
Authorization: Bondis alg=<secp256k1-keccak-eip712|secp256k1-keccak-raw>, h=<0x..>, sig=<0x..>
- Default
algissecp256k1-keccak-eip712. hiskeccak256(CRR)of the Canonical Request Representation.sigsignsh.
Body
vnumber · enumRequiredExample:
1Possible values: opstring · enumRequiredPossible values:
assetstringRequiredExample:
USDtamountstringRequiredExample:
5000from_substringRequiredExample:
spotto_substringRequiredExample:
marginResponses
200
Accepted
application/json
400
Bad request
application/json
post
/transfersPOST /v1/transfers HTTP/1.1
Host: api.bondis.xyz
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 98
{
"v": 1,
"op": "transfers.create",
"asset": "USDt",
"amount": "5000",
"from_sub": "spot",
"to_sub": "margin"
}{
"transfer_id": "txf_12ab",
"status": "accepted",
"block_id": 120394
}