List working capital limits
/v1/trading/working-capitalReturns the working capital limits configured for the authenticated user: how much of each currency Bit2Me may top up automatically into the trading wallet over a rolling 24-hour window, and how much of it has been used. Users without working capital get an empty array.
Authorization
ApiKeyAuth For accessing these endpoints a valid API key must be sent in the X-Api-Key header.
In: header
Query Parameters
Comma-separated currency codes. Only those limits are returned; all of them when omitted.
^[A-Z0-9]+(,[A-Z0-9]+)*$Response Body
application/json
application/json
curl --request GET \ --url 'https://gateway.bit2me.com/v1/trading/working-capital'[ { "currency": "B2M", "limit": 5000, "refillThreshold": 2500, "remaining": 2500, "type": "deposit", "used": 2500 }]Withdraw from trading wallet POST
Moves funds from the user's trading wallet back to their Bit2Me wallet, to the user's pocket of `currency` with the highest balance. Only the available `balance` can be withdrawn; funds reserved by open orders must be released first by cancelling those orders. The transfer is recorded as a `withdrawal` movement (`GET /v1/trading/movement`). `amount` is rounded down to the decimals of the currency. Only one movement per currency can be in progress at a time.
Sign in with API key POST
Authenticates a user using an API key and returns a JWT access token. The API key must be sent via the `ApiKeyAuth` security scheme. The request body carries the `userId` that the key belongs to. On success the response contains an `accessToken` with its expiration timestamp.