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β
| Tag | Field Name | Reqβd | Data Type (Max) | Comment |
|---|---|---|---|---|
| 63 | Message Version | Y | String (10) | Fixed Value β FT1.0 |
| 64 | Message Type | Y | Integer | Fixed Value β 326 |
| 67 | Reserved PG Dealer Id | O | String (10) | Reserved PG Dealer Id |
| 4 | Session Id | Y | String (100) | Must match session id received on logon response |
| 201 | User Id | Y | String (10) | Web Retail User Id |
| 202 | Group Id | Y | String (10) | Group Id of the user |
| 276 | Periodicity | Y | Int64 | Pass Periodicity Id (from GetPeriodicityList ) |
| 999 | Check Sum Value | Y | Integer | Checksum 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β
| Tag | Field Name | Reqβd | Comment |
|---|---|---|---|
| 63 | Message Version | Y | Fixed Value β FT1.0 |
| 64 | Message Type | Y | Fixed Value β 327 |
| 18 | Response Code | Y | Response Code:0 β Failure1 β Success |
| 19 | Response Message | O | Contains key FundsView with parameters as an array of JSON objects |
FundsView JSON Parametersβ
| Parameter (Key) | Data Type | Description |
|---|---|---|
sDescription | varchar(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 |
nTrading | float | Trading balance for the category |
sIndicator | varchar(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