API documentation
OrderDetails
Order payload sent from the client via DefaultHub.SendOrder
Fields
| OrderDetails | Type | Description | Example value |
|---|---|---|---|
| Instrument | string | Trading symbol string sent to the hub (not the full Instrument object). | "EURUSD" |
| OrderType | string | marketBuy | marketSell | limitBuy | limitSell | stopBuy | stopSell | "limitBuy" |
| LimitPrice | decimal? | 1.085 | |
| StopPrice | decimal? | null | |
| Quantity | decimal | 1 | |
| TimeInForce | string | "GTC" |
Example JSON
{
"instrument": "EURUSD",
"orderType": "limitBuy",
"limitPrice": 1.085,
"stopPrice": null,
"quantity": 1,
"timeInForce": "GTC"
}Related TypeScript contracts
/// <summary>
/// Order payload sent from the client via DefaultHub.SendOrder
/// </summary>
public class OrderDetails
{
public string Instrument { get; set; }
/// <summary>
/// marketBuy | marketSell | limitBuy | limitSell | stopBuy | stopSell
/// </summary>
public string OrderType { get; set; }
public decimal? LimitPrice { get; set; }
public decimal? StopPrice { get; set; }
public decimal Quantity { get; set; }
public string TimeInForce { get; set; }
}