Skip to content

Fund Details

You can deposit funds into your account to execute trades based on your available balance. If you have insufficient funds, Margin Trading Funding (MTF) can be used to cover the shortfall.

Ventura’s EaseAPI provides detailed information on the funds utilized during trading, including how much was spent on buying and selling. It does not include financial details such as token balances or transaction history, which are managed separately to ensure security and privacy.

Sample code

curl --location 'https://easeapi.venturasecurities.com/user/v1/fund_details' \
--header 'x-client-id: AA0605' \
--header 'x-app-key: 8ab5rt7yp2lm9qw4s1ex' \
--header 'authorization: Bearer eyJraWQiOiJRMUd0YmNyZVwvZWo5U0JZUHBiVGxOc1U1...'
import requests

url = "https://easeapi.venturasecurities.com/user/v1/fund_details"
payload = {}
headers = {
    'x-client-id': 'AA0605',
    'x-app-key': '8ab5rt7yp2lm9qw4s1ex',
    'authorization': 'Bearer eyJraWQiOiJRMUd0YmNyZVwvZWo5U0JZUHBiVGxOc1U1...'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
const axios = require('axios');

let config = {
    method: 'get',
    maxBodyLength: Infinity,
    url: 'https://easeapi.venturasecurities.com/user/v1/fund_details',
    headers: {
        'x-client-id': 'AA0605',
        'x-app-key': '8ab5rt7yp2lm9qw4s1ex',
        'authorization': 'Bearer eyJraWQiOiJRMUd0YmNyZVwvZWo5U0JZUHBiVGxOc1U1...'
    }
};

axios.request(config)
    .then((response) => {
        console.log(JSON.stringify(response.data));
    })
    .catch((error) => {
        console.log(error);
    });

Response

{
    "status": "success",
    "error": false,
    "data": {
        "available_to_trade": 0,
        "withdrawable_balance": 0,
        "net_option_premium": 0,
        "total_margin": {
            "total": 0,
            "ledger_balance": 0,
            "pledge_margin": 0,
            "pay_in": 0
        },
        "receivable_funds": 0,
        "utilised_margin": {
            "total": 0,
            "pending_order_margin": 0,
            "position_margin": 0,
            "booked_loss": 0
        }
    }
}

Response Parameters

Parameter
Description
available_to_trade It is the margin that is available to trade. It constitutes of free cash and pledged margin
withdrawable_balance The withdrawable free cash balance excludes any pledged margin or utilized position margin
net_option_premium It is the margin that is utilized for options positions
total The total margin available to users is the sum of their free cash balance from the ledger and the margin acquired by pledging holdings
ledger_balance It displays the utilized cash margin from the previous day
pledge_margin The margin acquired by pledging holdings from the previous day
pay_in Funds added through UPI, UPI Add, Net banking, IMPS, or NEFT
receivable_funds It is the realized profit for the day
utilised_margin The margin utilized for trades executed throughout the day and any losses incurred by the client
pending_order_margin The margin utilized by orders that are pending execution
position_margin Open orders or trades utilize margin until they are closed by the user, meaning they are still active and haven't been exited
booked_loss It is the loss incurred by the client from different trades