API ドキュメント

クライアント → サーバー認証: 必須

SendOrder()

パラメータ

必須

リクエストペイロードの例

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

ハブの戻り値タイプ

Task

サーバーがリクエストを受け入れると、呼び出しが完了します。ポートフォリオ、取引、およびステータスの更新は、以下のクライアントイベントで非同期的にプッシュされます。

関連メッセージタイプ

/// <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; }
    }
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契約

予定されているクライアントイベント

Alipay
Stripe
Eurex
AWS
Azure
Google Cloud
Currenex
Velocity Trade
Bitcoin
CME
Interactive Brokers
Kraken
FIX API
XTX
Bloomberg
Binance

プラットフォームを立ち上げましょう。

はじめましょう。