Skip to main content

Funds View

πŸ‘€βž‘οΈπŸŒ Funds View Request (Client β†’ WCF REST Service)​

This message is sent by the Client to the WCF REST Service to get the Funds View.
The Service validates the request based on the parameters sent and returns the response in string format.
In case of failure, it sends a failure response.

πŸ“˜ Tags and Fields​

TagField NameReq’dData Type (Max)Comment
63Message VersionYString (10)Fixed Value – FT1.0
64Message TypeYIntegerFixed Value – 326
67Reserved PG Dealer IdOString (10)Reserved PG Dealer Id
4Session IdYString (100)Must match session id received on logon response
201User IdYString (10)Web Retail User Id
202Group IdYString (10)Group Id of the user
276PeriodicityYInt64Pass Periodicity Id (from GetPeriodicityList )
999Check Sum ValueYIntegerChecksum generated based on entire string. Always appended at end

Examples​

βœ… String to be passed for generating checksum:​

63=FT1.0|64=326|67=RESERVEDPG|4=RESERVEDPG_412201710722|201=HARDIK61|202=HO|276=8589934591

βœ… String to be passed along with checksum:​

63=FT1.0|64=326|67=RESERVEDPG|4=RESERVEDPG_412201710722|201=HARDIK61|202=HO|276=8589934591|999=145

πŸ“‘πŸ“¨ Funds View Response (WCF REST Service β†’ Client)​

πŸ“˜ Tags and Fields​

TagField NameReq’dComment
63Message VersionYFixed Value – FT1.0
64Message TypeYFixed Value – 327
18Response CodeYResponse Code:
0 – Failure
1 – Success
19Response MessageOContains key FundsView with parameters as an array of JSON objects

FundsView JSON Parameters​

Parameter (Key)Data TypeDescription
sDescriptionvarchar(100)Breakdown of deposit categories:
Deposit, Cash Deposit, Adhoc Deposit, Overdraft Limit, Notional Deposit, Misc. Deposit, Manual Collateral, Funds Transferred Today, Collateral types, Credit For Sale, Option CFS, Total Trading Power Limit, Limit Utilization, Booked Profit/Loss, MTM Profit/Loss, Total Utilization, Net Available Funds
nTradingfloatTrading balance for the category
sIndicatorvarchar(100)Parent deposit category name

Examples​

βœ… Success Case​

63=FT1.0|64=327|18=1|19={"FundsView":[
{"sDescription":"Deposit","nTrading":99999999999.99,"sIndicator":"Deposit"},
{"sDescription":"Cash Deposit","nTrading":99999999999.99,"sIndicator":"Deposit"},
{"sDescription":"Adhoc Deposit","nTrading":0.00,"sIndicator":"Deposit"},
{"sDescription":"Funds Transferred Today","nTrading":0.00,"sIndicator":"Funds Transferred Today"},
{"sDescription":"Collateral","nTrading":0.00,"sIndicator":"Collateral"},
{"sDescription":"Maximum Collateral Limit","nTrading":99999999999.99,"sIndicator":"Collateral"},
{"sDescription":"Credit For Sale","nTrading":0.00,"sIndicator":"Credit For Sale"},
{"sDescription":"Maximum CFS Limit","nTrading":99999999999.99,"sIndicator":"Credit For Sale"},
{"sDescription":"Option CFS","nTrading":0.00,"sIndicator":"Option CFS"},
{"sDescription":"Total Trading Power Limit","nTrading":99999999999.99,"sIndicator":"Total Trading Power Limit"},
{"sDescription":"Multiplier","nTrading":1.00,"sIndicator":"Multiplier"},
{"sDescription":"Limit Utilization","nTrading":-148.14,"sIndicator":"Limit Utilization"},
{"sDescription":"Booked Profit/Loss","nTrading":0.00,"sIndicator":"Booked Profit/Loss"},
{"sDescription":"MTM Profit/Loss","nTrading":0.70,"sIndicator":"MTM Profit/Loss"},
{"sDescription":"Total Utilization","nTrading":-147.44,"sIndicator":""},
{"sDescription":"Net Available Funds","nTrading":99999999852.55,"sIndicator":""},
{"sDescription":"For Trading","nTrading":99999999852.55,"sIndicator":""},
{"sDescription":"For Allocation/Withdrawal","nTrading":99999999852.55,"sIndicator":""}
]}

❌ Failure Cases​

63=FT1.0|64=302|18=0|19=Error occurred, kindly contact administrator
63=FT1.0|64=302|18=0|19=User Id does not exist in the system
63=FT1.0|64=302|18=0|19=Unable to connect to the remote server