Skip to content

Latest commit

 

History

History
80 lines (51 loc) · 5.09 KB

ExecutionApi.md

File metadata and controls

80 lines (51 loc) · 5.09 KB

\ExecutionApi

All URIs are relative to https://localhost/api/v1

Method HTTP request Description
ExecutionGet Get /execution Get all raw executions for your account.
ExecutionGetTradeHistory Get /execution/tradeHistory Get all balance-affecting executions. This includes each trade, insurance charge, and settlement.

ExecutionGet

[]Execution ExecutionGet($symbol, $filter, $columns, $count, $start, $reverse, $startTime, $endTime)

Get all raw executions for your account.

This returns all raw transactions, which includes order opening and cancelation, and order status changes. It can be quite noisy. More focused information is available at /execution/tradeHistory. You may also use the filter param to target your query. Specify an array as a filter value, such as {\"execType\": [\"Settlement\", \"Trade\"]} to filter on multiple values. See the FIX Spec for explanations of these fields.

Parameters

Name Type Description Notes
symbol string Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are `daily`, `weekly`, `monthly`, `quarterly`, and `biquarterly`. [optional]
filter string Generic table filter. Send JSON key/value pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the Timestamp Docs for more details. [optional]
columns string Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. [optional]
count float32 Number of results to fetch. [optional] [default to 100]
start float32 Starting point for results. [optional] [default to 0]
reverse bool If true, will sort results newest first. [optional] [default to false]
startTime time.Time Starting date filter for results. [optional]
endTime time.Time Ending date filter for results. [optional]

Return type

[]Execution

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded
  • Accept: application/json, application/xml, text/xml, application/javascript, text/javascript

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ExecutionGetTradeHistory

[]Execution ExecutionGetTradeHistory($symbol, $filter, $columns, $count, $start, $reverse, $startTime, $endTime)

Get all balance-affecting executions. This includes each trade, insurance charge, and settlement.

Parameters

Name Type Description Notes
symbol string Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series. You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are `daily`, `weekly`, `monthly`, `quarterly`, and `biquarterly`. [optional]
filter string Generic table filter. Send JSON key/value pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the Timestamp Docs for more details. [optional]
columns string Array of column names to fetch. If omitted, will return all columns. Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect. [optional]
count float32 Number of results to fetch. [optional] [default to 100]
start float32 Starting point for results. [optional] [default to 0]
reverse bool If true, will sort results newest first. [optional] [default to false]
startTime time.Time Starting date filter for results. [optional]
endTime time.Time Ending date filter for results. [optional]

Return type

[]Execution

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded
  • Accept: application/json, application/xml, text/xml, application/javascript, text/javascript

[Back to top] [Back to API list] [Back to Model list] [Back to README]