cURL
curl --request POST \ --url http://localhost:2101/v1/balances \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "currency": "BTC" } '
201
Example
{ "status": "success", "message": "message for success", "data": { "id": "550e8400-e29b-41d4-a716-446655440000", "user_id": "platform_123456", "profile_id": "platform_123456", "currency": "BTC", "name": "Bitcoin", "type": "crypto", "pending": { "amount": "100", "currency": "BTC", "fiat": { "amount": "100", "currency": "BTC" } }, "available": { "amount": "100", "currency": "BTC", "fiat": { "amount": "100", "currency": "BTC" } }, "savings": { "amount": "100", "currency": "BTC", "fiat": { "amount": "100", "currency": "BTC" } }, "investments": { "amount": "100", "currency": "BTC", "fiat": { "amount": "100", "currency": "BTC" } }, "total": { "amount": "100", "currency": "BTC", "fiat": { "amount": "100", "currency": "BTC" } }, "show_zero": true, "trade": true, "deposit": true, "withdrawal": true }}
Creates a new balance for managing funds in a specific currency.
Bearer Authentication
User profile header
"BUS_YOK8tp5Zga01qOKEsqp07"
A valid currency
1 - 10
"BTC"
Balance created successfully
General response Values
success
error
"success"
"message for success"
Show child attributes