Withdrawals
const url = 'https://example.com/api/trading/accounts/1/withdrawals?limit=20';const options = { method: 'GET', headers: { 'INF-ACCESS-KEY': '<INF-ACCESS-KEY>', 'INF-ACCESS-TIMESTAMP': '<INF-ACCESS-TIMESTAMP>', 'INF-ACCESS-SIGNATURE': '<INF-ACCESS-SIGNATURE>' }};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/trading/accounts/1/withdrawals?limit=20' \ --header 'INF-ACCESS-KEY: <INF-ACCESS-KEY>' \ --header 'INF-ACCESS-SIGNATURE: <INF-ACCESS-SIGNATURE>' \ --header 'INF-ACCESS-TIMESTAMP: <INF-ACCESS-TIMESTAMP>'Your signed withdrawals, newest first, the nonce to sign next, and the most you can withdraw now.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”At most this many, up to 200. 20 if not given.
Responses
Section titled “Responses”Successful Response
object
The nonce to sign in your next withdrawal.
The most you can withdraw now, in units.
True while the vault has not applied one of your recent fills. A withdrawal is refused until it has, usually for about 25 seconds.
Newest first.
object
In units.
reserved: the amount is held until the vault pays or skips it. paid: the vault paid your linked wallet. claimable: the vault took the amount but could not send it, so your wallet claims it with claimUnpaid. skipped: the vault did not pay it, and the amount stays held, usually until the vault’s block is final. given_back: the amount is free again.
The signed Withdraw message’s EIP-712 digest.
Your linked wallet when the withdrawal was reserved.
Example
{ "withdrawals": [ { "status": "reserved" } ]}Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}