API function to read margins from your trading platform. APIs are available in AmiBroker, MetaTrader, Excel, Java, C#, Python, HTTP REST.
Api function will read margins from Supports leading Indian Stock Brokers.
Signatures
/*
* Retrieve margin funds for equity category.
*/
function getMarginFundsEquity(pseudoAccount)
/*
* Retrieve margin utilized for equity category.
*/
function getMarginUtilizedEquity(pseudoAccount)
/*
* Retrieve margin available for equity category.
*/
function getMarginAvailableEquity(pseudoAccount)
/*
* Retrieve margin funds for commodity category.
*/
function getMarginFundsCommodity(pseudoAccount)
/*
* Retrieve margin utilized for commodity category.
*/
function getMarginUtilizedCommodity(pseudoAccount)
/*
* Retrieve margin available for commodity category.
*/
function getMarginAvailableCommodity(pseudoAccount)
/*
* Retrieve margin funds for entire account.
*/
function getMarginFundsAll(pseudoAccount)
/*
* Retrieve margin utilized for entire account.
*/
function getMarginUtilizedAll(pseudoAccount)
/*
* Retrieve margin available for entire account.
*/
function getMarginAvailableAll(pseudoAccount)
/*
* Retrieve margin total for equity category.
*/
function getMarginTotalEquity(pseudoAccount)
/*
* Retrieve margin total for commodity category.
*/
function getMarginTotalCommodity(pseudoAccount)
/*
* Retrieve margin total for entire account.
*/
function getMarginTotalAll(pseudoAccount)
/*
* Retrieve margin net for equity category.
*/
function getMarginNetEquity(pseudoAccount)
/*
* Retrieve margin net for commodity category.
*/
function getMarginNetCommodity(pseudoAccount)
/*
* Retrieve margin net for entire account.
*/
function getMarginNetAll(pseudoAccount)
/*
* Retrieve margin span for equity category.
*/
function getMarginSpanEquity(pseudoAccount)
/*
* Retrieve margin span for commodity category.
*/
function getMarginSpanCommodity(pseudoAccount)
/*
* Retrieve margin span for entire account.
*/
function getMarginSpanAll(pseudoAccount)
/*
* Retrieve margin exposure for equity category.
*/
function getMarginExposureEquity(pseudoAccount)
/*
* Retrieve margin exposure for commodity category.
*/
function getMarginExposureCommodity(pseudoAccount)
/*
* Retrieve margin exposure for entire account.
*/
function getMarginExposureAll(pseudoAccount)
/*
* Retrieve margin collateral for equity category.
*/
function getMarginCollateralEquity(pseudoAccount)
/*
* Retrieve margin collateral for commodity category.
*/
function getMarginCollateralCommodity(pseudoAccount)
/*
* Retrieve margin collateral for entire account.
*/
function getMarginCollateralAll(pseudoAccount)
/*
* Retrieve margin payin for equity category.
*/
function getMarginPayinEquity(pseudoAccount)
/*
* Retrieve margin payin for commodity category.
*/
function getMarginPayinCommodity(pseudoAccount)
/*
* Retrieve margin payin for entire account.
*/
function getMarginPayinAll(pseudoAccount)
/*
* Retrieve margin payout for equity category.
*/
function getMarginPayoutEquity(pseudoAccount)
/*
* Retrieve margin payout for commodity category.
*/
function getMarginPayoutCommodity(pseudoAccount)
/*
* Retrieve margin payout for entire account.
*/
function getMarginPayoutAll(pseudoAccount)
/*
* Retrieve margin adhoc for equity category.
*/
function getMarginAdhocEquity(pseudoAccount)
/*
* Retrieve margin adhoc for commodity category.
*/
function getMarginAdhocCommodity(pseudoAccount)
/*
* Retrieve margin adhoc for entire account.
*/
function getMarginAdhocAll(pseudoAccount)
/*
* Retrieve margin realised mtm for equity category.
*/
function getMarginRealisedMtmEquity(pseudoAccount)
/*
* Retrieve margin realised mtm for commodity category.
*/
function getMarginRealisedMtmCommodity(pseudoAccount)
/*
* Retrieve margin realised mtm for entire account.
*/
function getMarginRealisedMtmAll(pseudoAccount)
/*
* Retrieve margin unrealised mtm for equity category.
*/
function getMarginUnrealisedMtmEquity(pseudoAccount)
/*
* Retrieve margin unrealised mtm for commodity category.
*/
function getMarginUnrealisedMtmCommodity(pseudoAccount)
/*
* Retrieve margin unrealised mtm for entire account.
*/
function getMarginUnrealisedMtmAll(pseudoAccount)
Examples
/*
* Retrieve margin funds for equity category.
*/
totalFundsEquity = getMarginFundsEquity(AT_ACCOUNT);
/*
* Retrieve margin utilized for equity category.
*/
utilizedMarginEquity = getMarginUtilizedEquity(AT_ACCOUNT);
/*
* Retrieve margin available for equity category.
*/
availableMarginEquity = getMarginAvailableEquity(AT_ACCOUNT);
/*
* Retrieve margin funds for commodity category.
*/
totalFundsCommodity = getMarginFundsCommodity(AT_ACCOUNT);
/*
* Retrieve margin utilized for commodity category.
*/
utilizedMarginCommodity = getMarginUtilizedCommodity(AT_ACCOUNT);
/*
* Retrieve margin available for commodity category.
*/
availableMarginCommodity = getMarginAvailableCommodity(AT_ACCOUNT);
/*
* Retrieve margin funds for entire account.
*/
totalFundsAll = getMarginFundsAll(AT_ACCOUNT);
/*
* Retrieve margin utilized for entire account.
*/
utilizedMarginAll = getMarginUtilizedAll(AT_ACCOUNT);
/*
* Retrieve margin available for entire account.
*/
availableMarginAll = getMarginAvailableAll(AT_ACCOUNT);
/*
* Retrieve margin total for equity category.
*/
marginTotalEquity = getMarginTotalEquity(pseudoAccount);
/*
* Retrieve margin total for commodity category.
*/
marginTotalCommodity = getMarginTotalCommodity(pseudoAccount);
/*
* Retrieve margin total for entire account.
*/
marginTotalAll = getMarginTotalAll(pseudoAccount);
/*
* Retrieve margin net for equity category.
*/
marginNetEquity = getMarginNetEquity(pseudoAccount);
/*
* Retrieve margin net for commodity category.
*/
marginNetCommodity = getMarginNetCommodity(pseudoAccount);
/*
* Retrieve margin net for entire account.
*/
marginNetAll = getMarginNetAll(pseudoAccount);
/*
* Retrieve margin span for equity category.
*/
marginSpanEquity = getMarginSpanEquity(pseudoAccount);
/*
* Retrieve margin span for commodity category.
*/
marginSpanCommodity = getMarginSpanCommodity(pseudoAccount);
/*
* Retrieve margin span for entire account.
*/
marginSpanAll = getMarginSpanAll(pseudoAccount);
/*
* Retrieve margin exposure for equity category.
*/
marginExposureEquity = getMarginExposureEquity(pseudoAccount);
/*
* Retrieve margin exposure for commodity category.
*/
marginExposureCommodity = getMarginExposureCommodity(pseudoAccount);
/*
* Retrieve margin exposure for entire account.
*/
marginExposureAll = getMarginExposureAll(pseudoAccount);
/*
* Retrieve margin collateral for equity category.
*/
marginCollateralEquity = getMarginCollateralEquity(pseudoAccount);
/*
* Retrieve margin collateral for commodity category.
*/
marginCollateralCommodity = getMarginCollateralCommodity(pseudoAccount);
/*
* Retrieve margin collateral for entire account.
*/
marginCollateralAll = getMarginCollateralAll(pseudoAccount);
/*
* Retrieve margin payin for equity category.
*/
marginPayinEquity = getMarginPayinEquity(pseudoAccount);
/*
* Retrieve margin payin for commodity category.
*/
marginPayinCommodity = getMarginPayinCommodity(pseudoAccount);
/*
* Retrieve margin payin for entire account.
*/
marginPayinAll = getMarginPayinAll(pseudoAccount);
/*
* Retrieve margin payout for equity category.
*/
marginPayoutEquity = getMarginPayoutEquity(pseudoAccount);
/*
* Retrieve margin payout for commodity category.
*/
marginPayoutCommodity = getMarginPayoutCommodity(pseudoAccount);
/*
* Retrieve margin payout for entire account.
*/
marginPayoutAll = getMarginPayoutAll(pseudoAccount);
/*
* Retrieve margin adhoc for equity category.
*/
marginAdhocEquity = getMarginAdhocEquity(pseudoAccount);
/*
* Retrieve margin adhoc for commodity category.
*/
marginAdhocCommodity = getMarginAdhocCommodity(pseudoAccount);
/*
* Retrieve margin adhoc for entire account.
*/
marginAdhocAll = getMarginAdhocAll(pseudoAccount);
/*
* Retrieve margin realised mtm for equity category.
*/
marginRealisedMtmEquity = getMarginRealisedMtmEquity(pseudoAccount);
/*
* Retrieve margin realised mtm for commodity category.
*/
marginRealisedMtmCommodity = getMarginRealisedMtmCommodity(pseudoAccount);
/*
* Retrieve margin realised mtm for entire account.
*/
marginRealisedMtmAll = getMarginRealisedMtmAll(pseudoAccount);
/*
* Retrieve margin unrealised mtm for equity category.
*/
marginUnrealisedMtmEquity = getMarginUnrealisedMtmEquity(pseudoAccount);
/*
* Retrieve margin unrealised mtm for commodity category.
*/
marginUnrealisedMtmCommodity = getMarginUnrealisedMtmCommodity(pseudoAccount);
/*
* Retrieve margin unrealised mtm for entire account.
*/
marginUnrealisedMtmAll = getMarginUnrealisedMtmAll(pseudoAccount);
Signatures
/*
* Retrieve margin funds for equity category.
*/
double getMarginFundsEquity(string pseudoAccount)
/*
* Retrieve margin utilized for equity category.
*/
double getMarginUtilizedEquity(string pseudoAccount)
/*
* Retrieve margin available for equity category.
*/
double getMarginAvailableEquity(string pseudoAccount)
/*
* Retrieve margin funds for commodity category.
*/
double getMarginFundsCommodity(string pseudoAccount)
/*
* Retrieve margin utilized for commodity category.
*/
double getMarginUtilizedCommodity(string pseudoAccount)
/*
* Retrieve margin available for commodity category.
*/
double getMarginAvailableCommodity(string pseudoAccount)
/*
* Retrieve margin funds for entire account.
*/
double getMarginFundsAll(string pseudoAccount)
/*
* Retrieve margin utilized for entire account.
*/
double getMarginUtilizedAll(string pseudoAccount)
/*
* Retrieve margin available for entire account.
*/
double getMarginAvailableAll(string pseudoAccount)
/*
* Retrieve margin total for equity category.
*/
double getMarginTotalEquity(string pseudoAccount)
/*
* Retrieve margin total for commodity category.
*/
double getMarginTotalCommodity(string pseudoAccount)
/*
* Retrieve margin total for entire account.
*/
double getMarginTotalAll(string pseudoAccount)
/*
* Retrieve margin net for equity category.
*/
double getMarginNetEquity(string pseudoAccount)
/*
* Retrieve margin net for commodity category.
*/
double getMarginNetCommodity(string pseudoAccount)
/*
* Retrieve margin net for entire account.
*/
double getMarginNetAll(string pseudoAccount)
/*
* Retrieve margin span for equity category.
*/
double getMarginSpanEquity(string pseudoAccount)
/*
* Retrieve margin span for commodity category.
*/
double getMarginSpanCommodity(string pseudoAccount)
/*
* Retrieve margin span for entire account.
*/
double getMarginSpanAll(string pseudoAccount)
/*
* Retrieve margin exposure for equity category.
*/
double getMarginExposureEquity(string pseudoAccount)
/*
* Retrieve margin exposure for commodity category.
*/
double getMarginExposureCommodity(string pseudoAccount)
/*
* Retrieve margin exposure for entire account.
*/
double getMarginExposureAll(string pseudoAccount)
/*
* Retrieve margin collateral for equity category.
*/
double getMarginCollateralEquity(string pseudoAccount)
/*
* Retrieve margin collateral for commodity category.
*/
double getMarginCollateralCommodity(string pseudoAccount)
/*
* Retrieve margin collateral for entire account.
*/
double getMarginCollateralAll(string pseudoAccount)
/*
* Retrieve margin payin for equity category.
*/
double getMarginPayinEquity(string pseudoAccount)
/*
* Retrieve margin payin for commodity category.
*/
double getMarginPayinCommodity(string pseudoAccount)
/*
* Retrieve margin payin for entire account.
*/
double getMarginPayinAll(string pseudoAccount)
/*
* Retrieve margin payout for equity category.
*/
double getMarginPayoutEquity(string pseudoAccount)
/*
* Retrieve margin payout for commodity category.
*/
double getMarginPayoutCommodity(string pseudoAccount)
/*
* Retrieve margin payout for entire account.
*/
double getMarginPayoutAll(string pseudoAccount)
/*
* Retrieve margin adhoc for equity category.
*/
double getMarginAdhocEquity(string pseudoAccount)
/*
* Retrieve margin adhoc for commodity category.
*/
double getMarginAdhocCommodity(string pseudoAccount)
/*
* Retrieve margin adhoc for entire account.
*/
double getMarginAdhocAll(string pseudoAccount)
/*
* Retrieve margin realised mtm for equity category.
*/
double getMarginRealisedMtmEquity(string pseudoAccount)
/*
* Retrieve margin realised mtm for commodity category.
*/
double getMarginRealisedMtmCommodity(string pseudoAccount)
/*
* Retrieve margin realised mtm for entire account.
*/
double getMarginRealisedMtmAll(string pseudoAccount)
/*
* Retrieve margin unrealised mtm for equity category.
*/
double getMarginUnrealisedMtmEquity(string pseudoAccount)
/*
* Retrieve margin unrealised mtm for commodity category.
*/
double getMarginUnrealisedMtmCommodity(string pseudoAccount)
/*
* Retrieve margin unrealised mtm for entire account.
*/
double getMarginUnrealisedMtmAll(string pseudoAccount)
Examples
/*
* Retrieve margin funds for equity category.
*/
double fundsEquity = getMarginFundsEquity(AT_ACCOUNT);
/*
* Retrieve margin utilized for equity category.
*/
double utilizedEquity = getMarginUtilizedEquity(AT_ACCOUNT);
/*
* Retrieve margin available for equity category.
*/
double availableEquity = getMarginAvailableEquity(AT_ACCOUNT);
/*
* Retrieve margin funds for commodity category.
*/
double fundsCommodity = getMarginFundsCommodity(AT_ACCOUNT);
/*
* Retrieve margin utilized for commodity category.
*/
double utilizedCommodity = getMarginUtilizedCommodity(AT_ACCOUNT);
/*
* Retrieve margin available for commodity category.
*/
double availableCommodity = getMarginAvailableCommodity(AT_ACCOUNT);
/*
* Retrieve margin funds for entire account.
*/
double fundsAll = getMarginFundsAll(AT_ACCOUNT);
/*
* Retrieve margin utilized for entire account.
*/
double utilizedAll = getMarginUtilizedAll(AT_ACCOUNT);
/*
* Retrieve margin available for entire account.
*/
double availableAll = getMarginAvailableAll(AT_ACCOUNT);
/*
* Retrieve margin total for equity category.
*/
double marginTotalEquity = getMarginTotalEquity(AT_ACCOUNT);
/*
* Retrieve margin total for commodity category.
*/
double marginTotalCommodity = getMarginTotalCommodity(AT_ACCOUNT);
/*
* Retrieve margin total for entire account.
*/
double marginTotalAll = getMarginTotalAll(AT_ACCOUNT);
/*
* Retrieve margin net for equity category.
*/
double marginNetEquity = getMarginNetEquity(AT_ACCOUNT);
/*
* Retrieve margin net for commodity category.
*/
double marginNetCommodity = getMarginNetCommodity(AT_ACCOUNT);
/*
* Retrieve margin net for entire account.
*/
double marginNetAll = getMarginNetAll(AT_ACCOUNT);
/*
* Retrieve margin span for equity category.
*/
double marginSpanEquity = getMarginSpanEquity(AT_ACCOUNT);
/*
* Retrieve margin span for commodity category.
*/
double marginSpanCommodity = getMarginSpanCommodity(AT_ACCOUNT);
/*
* Retrieve margin span for entire account.
*/
double marginSpanAll = getMarginSpanAll(AT_ACCOUNT);
/*
* Retrieve margin exposure for equity category.
*/
double marginExposureEquity = getMarginExposureEquity(AT_ACCOUNT);
/*
* Retrieve margin exposure for commodity category.
*/
double marginExposureCommodity = getMarginExposureCommodity(AT_ACCOUNT);
/*
* Retrieve margin exposure for entire account.
*/
double marginExposureAll = getMarginExposureAll(AT_ACCOUNT);
/*
* Retrieve margin collateral for equity category.
*/
double marginCollateralEquity = getMarginCollateralEquity(AT_ACCOUNT);
/*
* Retrieve margin collateral for commodity category.
*/
double marginCollateralCommodity = getMarginCollateralCommodity(AT_ACCOUNT);
/*
* Retrieve margin collateral for entire account.
*/
double marginCollateralAll = getMarginCollateralAll(AT_ACCOUNT);
/*
* Retrieve margin payin for equity category.
*/
double marginPayinEquity = getMarginPayinEquity(AT_ACCOUNT);
/*
* Retrieve margin payin for commodity category.
*/
double marginPayinCommodity = getMarginPayinCommodity(AT_ACCOUNT);
/*
* Retrieve margin payin for entire account.
*/
double marginPayinAll = getMarginPayinAll(AT_ACCOUNT);
/*
* Retrieve margin payout for equity category.
*/
double marginPayoutEquity = getMarginPayoutEquity(AT_ACCOUNT);
/*
* Retrieve margin payout for commodity category.
*/
double marginPayoutCommodity = getMarginPayoutCommodity(AT_ACCOUNT);
/*
* Retrieve margin payout for entire account.
*/
double marginPayoutAll = getMarginPayoutAll(AT_ACCOUNT);
/*
* Retrieve margin adhoc for equity category.
*/
double marginAdhocEquity = getMarginAdhocEquity(AT_ACCOUNT);
/*
* Retrieve margin adhoc for commodity category.
*/
double marginAdhocCommodity = getMarginAdhocCommodity(AT_ACCOUNT);
/*
* Retrieve margin adhoc for entire account.
*/
double marginAdhocAll = getMarginAdhocAll(AT_ACCOUNT);
/*
* Retrieve margin realised mtm for equity category.
*/
double marginRealisedMtmEquity = getMarginRealisedMtmEquity(AT_ACCOUNT);
/*
* Retrieve margin realised mtm for commodity category.
*/
double marginRealisedMtmCommodity = getMarginRealisedMtmCommodity(AT_ACCOUNT);
/*
* Retrieve margin realised mtm for entire account.
*/
double marginRealisedMtmAll = getMarginRealisedMtmAll(AT_ACCOUNT);
/*
* Retrieve margin unrealised mtm for equity category.
*/
double marginUnrealisedMtmEquity = getMarginUnrealisedMtmEquity(AT_ACCOUNT);
/*
* Retrieve margin unrealised mtm for commodity category.
*/
double marginUnrealisedMtmCommodity = getMarginUnrealisedMtmCommodity(AT_ACCOUNT);
/*
* Retrieve margin unrealised mtm for entire account.
*/
double marginUnrealisedMtmAll = getMarginUnrealisedMtmAll(AT_ACCOUNT);
Signature
/**
* Read trading platform margins from the trading
* account mapped to the given pseudo account.
*
* @param pseudoAccount pseudo account id
* @return margins trading platform margins
*/
IOperationResponse<Set<PlatformMargin>>
readPlatformMargins(final String pseudoAccount);
Example
IOperationResponse<Set<PlatformMargin>> response =
this.autotrader.readPlatformMargins("ACC_NAME");
Set<PlatformMargin> margins = null;
if(response.success()) {
// Extract the result
margins = response.getResult();
}
This will retrieve margins from your trading account that is mapped to the passed pseudo account. The function will return a response object.
Response object has a function called success(), which returns true on successful execution.
We can then use the method getResult() to get a set containing margins.
It is recommended to periodically download and cache the positions to avoid hitting the api limit. You can lookup the returned set and find your relevant order.
PlatformMargin class
Here is a look at the public methods of the PlatformMargin class.
/**
* Pseudo account id
*/
String getPseudoAccount();
/**
* Trading account id
*/
String getTradingAccount();
/**
* Stock broker
*/
String getStockBroker();
/**
* Margin category {@link com.dakshata.constants.trading.MarginCategory}
*/
MarginCategory getCategory();
/**
* Total funds
*/
float getFunds();
/**
* Utilized margin
*/
float getUtilized();
/**
* Available margin
*/
float getAvailable();
Signature
/// <summary>
/// Read trading platform margins from the trading account mapped to the given
/// pseudo account.
/// </summary>
/// <param name="pseudoAccount"> pseudo account id </param>
/// <returns> margins trading platform margins </returns>
IOperationResponse<ISet<PlatformMargin>> ReadPlatformMargins(
string pseudoAccount);
Example
IOperationResponse<ISet<PlatformMargin>> response =
autoTrader.ReadPlatformMargins("XX1234");
foreach (PlatformMargin p in response.Result)
Console.WriteLine("{0}", p);
This will retrieve margins from your trading account that is mapped to the passed pseudo account. The function will return a response object.
Response object has a function called Success(), which returns true on successful execution.
We can then use it’s Result property to get a set containing margins.
It is recommended to periodically download and cache the positions to avoid hitting the api limit. You can lookup the returned set and find your relevant order.
PlatformMargin
Here is a look at the public methods of PlatformMargin model class:
string PseudoAccount { get; }
string TradingAccount { get; }
string StockBroker { get; }
MarginCategory Category { get; }
float? Funds { get; }
float? Utilized { get; }
float? Available { get; }
Signature
def read_platform_margins(self, pseudo_account):
Example
response = autotrader.read_platform_margins('XX1234')
if response.success():
# Result will be a list of objects of type
# com.dakshata.trading.model.platform.PlatformMargin
for o in response.result:
pretty = "[Pseudo acc.: {}, Trading acc.: {}, Category: {}, Funds: {}, " + \
"Utilized: {}, Available: {}, Total: {}, Net: {}, Span: {}, " + \
"Exposure: {}, Collateral: {}, Payin: {}, Payout: {}, Adhoc: {}, " + \
"Real. Mtm: {}, Unreal. Mtm: {}, Broker: {}, ]"
print(pretty.format(o.pseudo_account, o.trading_account, o.category,
o.funds, o.utilized, o.available, o.total, o.net, o.span, o.exposure,
o.collateral, o.payin, o.payout, o.adhoc, o.realised_mtm,
o.unrealised_mtm, o.stock_broker))
print("\n----------------------------------------------------------------------\n")
else:
print("Message: {0}".format(response.message))
Note: Our libraries use object oriented programming in Python. The response.result
object from above function will be a list of objects of class PlatformMargin
. You can then iterate or loop over the list & read each object’s properties via object.property
notation. You can find all available properties in PlatformMargin.py.
It is recommended to periodically download and cache the orders to avoid hitting the api limit. You can lookup the returned set and find your relevant order.
Example
curl https://api.stocksdeveloper.in/trading/readPlatformMargins \
-H "api-key: <your_api_key>" \
-d "pseudoAccount=ACC_NAME"
Response
{
"result":[
{
"account":null,
"category":"ALL",
"funds":944.16,
"utilized":0.05,
"available":944.11,
"day":[
2020,
7,
2
],
"pseudoAccount":"XX9999",
"tradingAccount":"XX9999",
"stockBroker":"Zerodha",
"version":null
},
{
"account":null,
"category":"EQUITY",
"funds":944.16,
"utilized":0.05,
"available":944.11,
"day":[
2020,
7,
2
],
"pseudoAccount":"XX9999",
"tradingAccount":"XX9999",
"stockBroker":"Zerodha",
"version":null
},
{
"account":null,
"category":"COMMODITY",
"funds":0.0,
"utilized":0.0,
"available":0.0,
"day":[
2020,
7,
2
],
"pseudoAccount":"XX9999",
"tradingAccount":"XX9999",
"stockBroker":"Zerodha",
"version":null
}
],
"message":null,
"status":true,
"commandId":"e7f67fa1-d696-4aed-bd3c-dd6f44e526ef"
}
The response contains result (which is an array of margins in json format sourced from your trading platform).
If there is any error, then you will get status as false & message will have error text.
It is recommended to periodically download and cache the margins to avoid hitting the api limit.
Signatures
' Retrieve margin funds.
Public Function GetMarginFunds(pseudoAccount As String, _
category As String) As Double
' Retrieve margin utilized.
Public Function GetMarginUtilized(pseudoAccount As String, _
category As String) As Double
' Retrieve margin available.
Public Function GetMarginAvailable(pseudoAccount As String, _
category As String) As Double
' Retrieve margin funds for equity category.
Public Function GetMarginFundsEquity(pseudoAccount As String) As Double
' Retrieve margin utilized for equity category.
Public Function GetMarginUtilizedEquity(pseudoAccount As String) As Double
' Retrieve margin available for equity category.
Public Function GetMarginAvailableEquity(pseudoAccount As String) As Double
' Retrieve margin funds for commodity category.
Public Function GetMarginFundsCommodity(pseudoAccount As String) As Double
' Retrieve margin utilized for commodity category.
Public Function GetMarginUtilizedCommodity(pseudoAccount As String) As Double
' Retrieve margin available for commodity category.
Public Function GetMarginAvailableCommodity(pseudoAccount As String) As Double
' Retrieve margin funds for entire account.
Public Function GetMarginFundsAll(pseudoAccount As String) As Double
' Retrieve margin utilized for entire account.
Public Function GetMarginUtilizedAll(pseudoAccount As String) As Double
' Retrieve margin available for entire account.
Public Function GetMarginAvailableAll(pseudoAccount As String) As Double
Postman is widely used tool for API testing. We have provided below a collection of all of our APIs in postman collection format. Click postman collection to know more about how to use it.