Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
api:admin [2024/04/01 20:39] – chad | api:admin [2025/03/14 02:49] (current) – removed chad | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Admin API ====== | ||
- | |||
- | The T4 Admin API allows you to connect your systems to the T4 backend in order to carry out admin functionality such as creating new users and obtaining reports. | ||
- | |||
- | ====== User Fills ====== | ||
- | |||
- | Retrieves trading fill data for a user or account within a specified time frame. This endpoint requires authorization and is intended for administrative use. | ||
- | |||
- | ==== API Endpoint ==== | ||
- | < | ||
- | |||
- | ==== Header ==== | ||
- | Include **Authorization** which should contain a valid bearer token. | ||
- | < | ||
- | |||
- | ==== Parameters ==== | ||
- | ^ Parameter | ||
- | | UserID | ||
- | | AccountID | ||
- | | TradeDateStart | ||
- | | TradeDateEnd | ||
- | | ExchangeID | ||
- | | Offset | ||
- | | Count | Integer specifying the number of fills to retrieve. | ||
- | |||
- | ====== User Fills Response Structure ====== | ||
- | |||
- | The response from the **User Fills** API contains detailed information about trading fills for a user or account. The response includes the total number of fills and a collection of individual fill details. | ||
- | |||
- | ==== Response JSON Object ==== | ||
- | - **TotalFills**: | ||
- | - **UserFills**: | ||
- | |||
- | ==== UserFillResult Object Structure ==== | ||
- | ^ Field ^ Type ^ Description | ||
- | | UniqueID | ||
- | | BuySell | ||
- | | PriceType | ||
- | | Ticks | int | Number of ticks. | ||
- | | Volume | ||
- | | ResidualVolume | ||
- | | Time | DateTime | ||
- | | TimeL | long | Long representation of fill time. | | ||
- | | ExchangeTradeID | ||
- | | ExchangeTime | ||
- | | ExchangeTimeL | ||
- | | UserName | ||
- | | Account | ||
- | | AccountName | ||
- | | TradeDate | ||
- | | Market | ||
- | | AccountID | ||
- | | Price | string | ||
- | | MarketID | ||
- | | Numerator | ||
- | | Denominator | ||
- | | TickValue | ||
- | | PriceCode | ||
- | | MinPriceIncrement | string | ||
- | | Decimals | ||
- | | RealDecimals | ||
- | | ClearingDecimals | ||
- | | MinCabPrice | ||
- | | VTT | string | ||
- | |||
- | ==== Example JSON Response ==== | ||
- | < | ||
- | { | ||
- | " | ||
- | " | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | // ... more fields as defined in the UserFillResult object structure ... | ||
- | }, | ||
- | // ... additional user fill objects ... | ||
- | ] | ||
- | } | ||
- | </ | ||
- | |||
- | ===== Admin API Functionality ===== | ||
- | |||
- | |||
- | [[api: | ||
- | |||
- | [[api: | ||
- | |||
- | [[api: | ||
- | |||