| GET, OPTIONS | /Scripts/{ScriptId}/active-orders | ||
|---|---|---|---|
| GET, OPTIONS | /Scripts/{ScriptId}/Orders/Open |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Authorization | header | string | Yes | Authorization token in the form "Bearer your_token_here" |
| ScriptId | path | string | Yes | Script ID |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /Scripts/{ScriptId}/active-orders HTTP/1.1
Host: partytime.pt
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
[{"ClientId":"String","OrderId":"String","Timestamp":"\/Date(-62135596800000)\/","Exchange":null,"Type":"Market","Side":"Buy","Status":"New","Price":0,"Quantity":0,"Remaining":0,"Filled":0,"SessionId":"String","SessionSubId":"String","LastTradeTimestamp":"\/Date(-62135596800000)\/","Fills":[{}],"Cost":0}]