Skip to main content

Overview

The Balance API should return the trading account balance information for a user’s account on a specific date. This is essential for Quicko to accurately compute taxes and prepare financial reports based on account balances as of a particular date (e.g., year-end, month-end, or any regulatory date).

Query Parameters

Your API should accept a date query parameter to retrieve balance information for that specific date. This allows Quicko to fetch historical balance data when needed for compliance and tax computation purposes.
GET /user/balance?date=YYYY-MM-DD

Response

Your Balance API should return the following balance information:
ParamTypeRequiredDescription
acc_typeStringNoType of account, i.e., commodity or security
opening_balanceNumberNoThe opening balance of the trader
used_marginNumberYesThe margin used by the trader. Positive values denote the amount blocked into an open order or position. A Negative value denotes the amount being released.
available_marginNumberYesTotal margin available for trading
closing_balanceNumberYesThe closing balance of the trader