Query Positions - Samples with Filters
GET {{baseurl}}apireport?svc=getReport&reportName=API_Positions_Retrieve&inputParamName=filters&inputParamValue=Account.Strategy~!=~DEMO
This method returns the most recent state of positions filtered with the provided criteria.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
svc | string | (Required) Needs to be populated with getReport | |
reportName | string | (Required) Report name that has been provided by LiquidityBook | |
inputParamName | string | (Required) Enables inputParamValue for filtering | |
inputParamValue | string | (Required) positions datapoint to filter~!=filtering criteria |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"node":"953","nodeGroup":"LOGIC-953","rc":0,"report":[{"Sedol":"","DayPos":"-87133.8200","Underlier":"","DayAvgPrc":"1.0000","SODPx":"1.0000","OptionTicker":"","BuyQty":"0.0000","PosChange":"-87133.82","MarketValLocal":"-89979.0700","SellQty":"87133.8200","Strategy":"DEMO","SODPos":"-2845.2500","NetPos":"-89979.0700","Symbol":".USD","Acct":"API_DEMO_LQBK","Cusip":"","DayPnlUSD":"0.0000","Ticker":"","AssetClass":"","Portfolio":"API","LastPx":"1.0","ISIN":""}]}