API 文档

OrderDetails

Order payload sent from the client via DefaultHub.SendOrder

字段

OrderDetails类型描述示例值
Instrumentstring

Trading symbol string sent to the hub (not the full Instrument object).

请参阅 TypeScript Instrument 合约

"EURUSD"
OrderTypestring

marketBuy | marketSell | limitBuy | limitSell | stopBuy | stopSell

"limitBuy"
LimitPricedecimal?1.085
StopPricedecimal?null
Quantitydecimal1
TimeInForcestring"GTC"

示例 JSON

{
  "instrument": "EURUSD",
  "orderType": "limitBuy",
  "limitPrice": 1.085,
  "stopPrice": null,
  "quantity": 1,
  "timeInForce": "GTC"
}

相关 TypeScript 合约

/// <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; }
    }
Alipay
Stripe
Eurex
AWS
Azure
Google Cloud
Currenex
Velocity Trade
Bitcoin
CME
Interactive Brokers
Kraken
FIX API
XTX
Bloomberg
Binance

启动您的平台。

开始使用。