It is possible to call the derivatives api and get real time status of all contracts belonging to a customer via method
GetCustomerContracts(string customerId, string status, string assetClass, string symbol, string dateFrom, string dateTo)
by either adding a service reference to the web service and call from code or call directly from url in browser.
Parameter name | Description | Value format |
---|---|---|
customerId | The ssn of the customer | e.g 1412753219, no hyphens or spaces |
status | The status of the contract (optional) | if omitted or null passed, it will return all contracts belonging to customer within date span, 0 for only open contracts and 1 for only closed contracts. |
assetClass | The assetClass of the contract (optional) | For filtering for only bonds set assetClass=”bonds” and if filtering for shares, set assetClass=”shares”, else all is returned |
symbol | The symbol of the underlying instrument (optional) | For filtering for symbols. If omitted, or null or empty string is passed, all contracts are returned. |
dateFrom | The date from which to query contracts (optional) | If omitted or null is passed it uses min date. The form should be 2020-05-21 |
dateTo | The date to which to query contracts (optional) | If omitted or null is passed it uses date today. The form should be 2020-05-21 |
The api This is a WCF api but the method returns a string on json format, see example below:
...