Extensions
エクステンションクラス。
プロパティ
public static IEnumerable<Type> AllCandleTypes { get; }
value = Extensions.AllCandleTypes
登録されたキャンドルの種類。
public static SecurityMessage AllSecurity { get; }
value = Extensions.AllSecurity
「全ての金融商品」インスタンス。
public static CachedSynchronizedSet<Level1Fields> BestAskFields { get; }
value = Extensions.BestAskFields
最適な依頼に関するフィールド
public static CachedSynchronizedSet<Level1Fields> BestBidFields { get; }
value = Extensions.BestBidFields
落札の分野は、最高の入札に関係しています。
public static CachedSynchronizedSet<Level1Fields> LastTradeFields { get; }
value = Extensions.LastTradeFields
最終取引に関連する分野。
public static IEnumerable<MessageTypes> MarketDataMessageTypes { get; }
value = Extensions.MarketDataMessageTypes
市場データメッセージタイプ。
public static IEnumerable<MessageTypes> TransactionalMessageTypes { get; }
value = Extensions.TransactionalMessageTypes
トランザクションメッセージの種類。
メソッド
public static QuoteChangeMessage AddDelta(IOrderBookMessage from, IOrderBookMessage delta)
result = Extensions.AddDelta(from, delta)
注文書に変更を加える。
- from
- ファーストオーダーブック
- delta
- 変更する。
戻り値: 変更された注文書。
public static QuoteChange[] AddDelta(IEnumerable<QuoteChange> fromQuotes, IEnumerable<QuoteChange> deltaQuotes, bool isBids)
result = Extensions.AddDelta(fromQuotes, deltaQuotes, isBids)
引用符に変更を加えるため。
- fromQuotes
- 見積り
- deltaQuotes
- 変更点
- isBids
- 引用符の方向の徴候。
戻り値: 引用符を変更しました。
public static void AddMarketDataSupport(MessageAdapter adapter)
Extensions.AddMarketDataSupport(adapter)
市場データに関するSupportedInMessages@のメッセージタイプを記入します。
- adapter
- アダプター。
public static void AddNotSupportedResultMessage(MessageAdapter adapter, MessageTypes type)
Extensions.AddNotSupportedResultMessage(adapter, type)
送信先のメールをNotSupportedResultMessages@にしてください。
- adapter
- アダプター。
- type
- メッセージタイプ。
public static DateTime AddOrSubtractTradingDays(BoardMessage board, DateTime date, int n, bool checkHolidays)
result = Extensions.AddOrSubtractTradingDays(board, date, n, checkHolidays)
N取引日のT +/-日の日付を取得するには.
- board
- ボード情報
- date
- 開始T日付、追加または引き算されたN取引日。
- n
- Nサイズ。追加または減算の取引日数。
- checkHolidays
- 平日の渡された日付を調べるかどうか(土・日は休み、それらに対する返された値)。
戻り値: 最後の T +/- N 日。
public static void AddSupportedCandleTimeFrames(MessageAdapter adapter, IEnumerable<TimeSpan> timeFrames)
Extensions.AddSupportedCandleTimeFrames(adapter, timeFrames)
タイムフレームをDateTime}に追加します。
- adapter
- アダプター。
- timeFrames
- タイムフレーム。
public static void AddSupportedMarketDataType(MessageAdapter adapter, DataType dataType)
Extensions.AddSupportedMarketDataType(adapter, dataType)
市場データ型を@DateTime}に追加。
- adapter
- アダプター。
- dataType
- データ型情報。
public static void AddSupportedMessage(MessageAdapter adapter, MessageTypeInfo info)
Extensions.AddSupportedMessage(adapter, info)
送信先のメールをPossibleSupportedMessages@にしてください。
- adapter
- アダプター。
- info
- 拡張機能MessageTypes@
public static void AddSupportedMessage(MessageAdapter adapter, MessageTypes type, bool? isMarketData)
Extensions.AddSupportedMessage(adapter, type, isMarketData)
送信先のメールをSupportedInMessages@にしてください。
- adapter
- アダプター。
- type
- メッセージタイプ。
- isMarketData
- 市場データ型です。
public static void AddTransactionalSupport(MessageAdapter adapter)
Extensions.AddTransactionalSupport(adapter)
トランザクションに関連するSupportedInMessagesメッセージタイプを埋めます。
- adapter
- アダプター。
public static TMessage Add<TMessage, TChange>(TMessage message, TChange type, CurrencyTypes value)
result = Extensions.Add(message, type, value)
変更をコレクションに追加します。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
戻り値: 変更メッセージ
public static TMessage Add<TMessage, TChange>(TMessage message, TChange type, PortfolioStates value)
result = Extensions.Add(message, type, value)
変更をコレクションに追加します。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
戻り値: 変更メッセージ
public static TMessage Add<TMessage, TChange>(TMessage message, TChange type, DateTime value)
result = Extensions.Add(message, type, value)
変更をコレクションに追加します。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
戻り値: 変更メッセージ
public static TMessage Add<TMessage, TChange>(TMessage message, TChange type, long value)
result = Extensions.Add(message, type, value)
変更をコレクションに追加します。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
戻り値: 変更メッセージ
public static TMessage Add<TMessage, TChange>(TMessage message, TChange type, Sides value)
result = Extensions.Add(message, type, value)
変更をコレクションに追加します。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
戻り値: 変更メッセージ
public static TMessage Add<TMessage, TChange>(TMessage message, TChange type, int value)
result = Extensions.Add(message, type, value)
変更をコレクションに追加します。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
戻り値: 変更メッセージ
public static TMessage Add<TMessage, TChange>(TMessage message, TChange type, decimal value)
result = Extensions.Add(message, type, value)
変更をコレクションに追加します。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
戻り値: 変更メッセージ
public static TMessage Add<TMessage, TChange>(TMessage message, TChange type, object value)
result = Extensions.Add(message, type, value)
変更をコレクションに追加します。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
戻り値: 変更メッセージ
public static TMessage Add<TMessage, TChange>(TMessage message, TChange type, bool value)
result = Extensions.Add(message, type, value)
変更をコレクションに追加します。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
戻り値: 変更メッセージ
public static TMessage Add<TMessage, TChange>(TMessage message, TChange type, SecurityStates value)
result = Extensions.Add(message, type, value)
変更をコレクションに追加します。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
戻り値: 変更メッセージ
public static decimal ApplyNewBalance(decimal? currBal, decimal newBal, long transactionId, ILogReceiver logs)
result = Extensions.ApplyNewBalance(currBal, newBal, transactionId, logs)
残高変更の可能性を確認してください。
- currBal
- 現在のバランス。
- newBal
- 新たなバランス。
- transactionId
- トランザクションID。
- logs
- ログ
戻り値: 新たなバランス。
public static IAsyncEnumerable<QuoteChangeMessage> BuildIfNeed(IAsyncEnumerable<QuoteChangeMessage> books, ILogReceiver logs)
result = Extensions.BuildIfNeed(books, logs)
注文書を増分更新から作成するには。
- books
- 注文書(増分される)。
- logs
- ログ
戻り値: 完全オーダーブック
public static IEnumerable<QuoteChangeMessage> BuildIfNeed(IEnumerable<QuoteChangeMessage> books, ILogReceiver logs)
result = Extensions.BuildIfNeed(books, logs)
増分変更の場合、OrderBookIncrementBuilder でビルドブックを試してみましょう。
- books
- 書籍の注文
- logs
- ログ
戻り値: 書籍の注文
public static void ChangeSupported(IMessageAdapter adapter, bool add, bool isMarketData)
Extensions.ChangeSupported(adapter, add, isMarketData)
Change SupportedInMessages.
- adapter
- アダプター。
- add
- コマンド。
- isMarketData
- メッセージの種類。
public static IMessageAdapter CreateAdapter(Type adapterType, IdGenerator idGenerator)
result = Extensions.CreateAdapter(adapterType, idGenerator)
Create IMessageAdapter.
- adapterType
- アダプターのタイプ。
- idGenerator
- トランザクションIDジェネレータ。
戻り値: IMessageAdapter インスタンス。
public static IMessageAdapter CreateAdapter(Type adapterType)
result = Extensions.CreateAdapter(adapterType)
IMessageAdapter@ インスタンスを作成します。
- adapterType
- アダプターのタイプ。
戻り値: IMessageAdapter インスタンス。
public static CandleMessage CreateCandleMessage(Type messageType)
result = Extensions.CreateCandleMessage(messageType)
CandleMessage のインスタンスを作成します。
- messageType
- キャンドルメッセージの種類。
戻り値: Instance of CandleMessage.
public static Message CreateErrorResponse(Message message, Exception ex, ILogReceiver logs, Func<DataType, long[]> getSubscribers)
result = Extensions.CreateErrorResponse(message, ex, logs, getSubscribers)
エラー応答を作成します。
- message
- オリジナルメッセージ
- ex
- エラー。
- logs
- ログ
- getSubscribers
- 購読者識別子プロバイダ。
戻り値: エラー応答。
public static ChannelExecutor CreateExecutorAndRun(TimeSpan interval, Action<Exception> errorHandler, CancellationToken token)
result = Extensions.CreateExecutorAndRun(interval, errorHandler, token)
作成し、ChannelExecutor@を実行します。
- interval
- メッセージの処理の間隔。
- errorHandler
- エラーハンドラ。
- token
- 担当: 佐藤 宏
戻り値: 担当: 佐藤 宏
public static SubscriptionResponseMessage CreateNotSupported(long id)
result = Extensions.CreateNotSupported(id)
未サポートのサブスクリプション応答を作成します。
- id
- メッセージを返すメッセージの元のメッセージのID。
戻り値: サブスクリプション応答メッセージ。
public static OrderCondition CreateOrderCondition(IMessageAdapter adapter)
result = Extensions.CreateOrderCondition(adapter)
注文タイプ条件の条件、アダプターをサポートする条件を作成します。
- adapter
- アダプター。
戻り値: 注文条件。
public static OrderCondition CreateOrderCondition(Type orderConditionType)
result = Extensions.CreateOrderCondition(orderConditionType)
注文タイプ条件の条件、アダプターをサポートする条件を作成します。
- orderConditionType
- 型式:OrderCondition@
戻り値: 注文条件。
public static IOrderLogMarketDepthBuilder CreateOrderLogMarketDepthBuilder(Type builderType, SecurityId securityId)
result = Extensions.CreateOrderLogMarketDepthBuilder(builderType, securityId)
IOrderLogMarketDepthBuilder@ インスタンスを作成します。
- builderType
- ビルダータイプ。
- securityId
- 金融商品ID
戻り値: IOrderLogMarketDepthBuilder インスタンス。
public static ExecutionMessage CreateOrderReply(long transactionId, DateTime serverTime)
result = Extensions.CreateOrderReply(transactionId, serverTime)
注文のトランザクションの応答を作成します。
- transactionId
- 取引ID。
- serverTime
- サーバー時間。
戻り値: メッセージには、実行に関する情報が含まれています。
public static PositionChangeMessage CreatePortfolioChangeMessage(IMessageAdapter adapter, string pfName)
result = Extensions.CreatePortfolioChangeMessage(adapter, pfName)
PositionChangeMessage の新規インスタンスを初期化します。
- adapter
- トレーディングシステムアダプタ。
- pfName
- ポートフォリオ名
戻り値: ポートフォリオ変更メッセージ
public static PositionChangeMessage CreatePositionChangeMessage(IMessageAdapter adapter, string pfName, SecurityId securityId, string depoName)
result = Extensions.CreatePositionChangeMessage(adapter, pfName, securityId, depoName)
PositionChangeMessage の新規インスタンスを初期化します。
- adapter
- トレーディングシステムアダプタ。
- pfName
- ポートフォリオ名
- securityId
- 金融商品ID
- depoName
- 物理的な金融商品が置いた預託金
戻り値: 位置変更メッセージ。
public static ExecutionMessage CreateReply(OrderMessage message, Exception error)
result = Extensions.CreateReply(message, error)
キャストOrderMessageExecutionMessage@
- message
- 代表取締役社長 佐藤 浩
- error
- エラー情報。
戻り値: 代表取締役社長 佐藤 浩
public static SubscriptionResponseMessage CreateResponse(ISubscriptionMessage message, Exception error)
result = Extensions.CreateResponse(message, error)
サブスクリプションの応答を作成します。
- message
- サブスクリプション。
- error
- エラー情報。
戻り値: サブスクリプション応答メッセージ。
public static Message CreateResult(ISubscriptionMessage message)
result = Extensions.CreateResult(message)
作成するSubscriptionOnlineMessageまたはSubscriptionFinishedMessageにTに依存します。
- message
- サブスクリプション。
戻り値: ご挨拶
public static SubscriptionResponseMessage CreateSubscriptionResponse(long id, Exception error)
result = Extensions.CreateSubscriptionResponse(id, error)
サブスクリプションの応答を作成します。
- id
- メッセージを返すメッセージの元のメッセージのID。
- error
- エラー情報。
戻り値: サブスクリプション応答メッセージ。
public static string DataTypeArgToString(Type messageType, object arg)
result = Extensions.DataTypeArgToString(messageType, arg)
保存されたシンボルを置き換えるフォルダ名にキャンドルパラメータを変換します。
- messageType
- キャンドルメッセージの種類。
- arg
- キャンドルアーグ。
戻り値: ディレクトリ名。
public static string DataTypeArgToString(DataType dataType)
result = Extensions.DataTypeArgToString(dataType)
保存されたシンボルを置き換えるフォルダ名にキャンドルパラメータを変換します。
- dataType
- データ型情報。
戻り値: ディレクトリ名。
public static string DataTypeToFileName(DataType dataType)
result = Extensions.DataTypeToFileName(dataType)
ファイル名をDataType@に変換します。
- dataType
- データ型情報。
戻り値: ファイル名。
public static SecurityIdGenerator EnsureGetGenerator(SecurityIdGenerator generator)
result = Extensions.EnsureGetGenerator(generator)
指定されたジェネレーターまたはデフォルトを .
- generator
- 担当: 佐藤 宏
戻り値: 担当: 佐藤 宏
public static DateTime? EnsureToday(DateTime? date)
result = Extensions.EnsureToday(date)
指定された日付が同等であることを今日決定し、今日を返します。
- date
- 指定した日付。
戻り値: 結果値。
public static DateTime? EnsureToday(DateTime? date, DateTime? todayValue)
result = Extensions.EnsureToday(date, todayValue)
指定された日付が同等であることを決定し、今日を返します。
- date
- 指定した日付。
- todayValue
- 最近の値。
戻り値: 結果値。
public static DataType FileNameToDataType(string fileName)
result = Extensions.FileNameToDataType(fileName)
DataTypeをファイル名に変換します。
- fileName
- ファイル名。
戻り値: データ型情報。
public static SecurityMessage FillDefaultCryptoFields(SecurityId secId)
result = Extensions.FillDefaultCryptoFields(secId)
デフォルト@CryptoCurrency価格とボリュームステップを0.00000001値で満たします。
- secId
- 金融商品ID
戻り値: 金融商品に関する情報を含むメッセージ。
public static SecurityMessage FillDefaultCryptoFields(SecurityMessage message)
result = Extensions.FillDefaultCryptoFields(message)
デフォルト@CryptoCurrency価格とボリュームステップを0.00000001値で満たします。
- message
- 金融商品に関する情報を含むメッセージ。
戻り値: 金融商品に関する情報を含むメッセージ。
public static IEnumerable<BoardMessage> Filter(IEnumerable<BoardMessage> boards, BoardLookupMessage criteria)
result = Extensions.Filter(boards, criteria)
コード基準でフィルタボードをフィルタリングします。
- boards
- ボードは全て
- criteria
- 基準
戻り値: ボードを見つけました。
public static IEnumerable<SecurityMessage> Filter(IEnumerable<SecurityMessage> securities, SecurityLookupMessage criteria)
result = Extensions.Filter(securities, criteria)
所定の基準で機器をフィルタリングする。
- securities
- 金融商品取引
- criteria
- 特定基準のメッセージ財務機器の検索
戻り値: フィルタリングされた器械。
public static IEnumerable<TimeSpan> FilterTimeFrames(IEnumerable<DataType> dataTypes)
result = Extensions.FilterTimeFrames(dataTypes)
指定したデータタイプから時間枠を抽出します。
- dataTypes
- データ型。
戻り値: タイムフレームの対応が可能
public static IEnumerable<TMessage> Filter<TMessage>(IEnumerable<TMessage> messages, DateTime from, DateTime to)
result = Extensions.Filter(messages, from, to)
指定した期間のメッセージをフィルタリングします。
- messages
- 必要なメッセージは、検索対象のメッセージです。
- from
- 検索開始日
- to
- 検索の最終日。
戻り値: フィルタリングされたメッセージ。
public static TAdapter FindAdapter<TAdapter>(IMessageAdapterWrapper wrapper)
result = Extensions.FindAdapter(wrapper)
指定されたタイプでアダプターを見つけます。
- wrapper
- ラップ ベースのアダプター。
戻り値: アダプターまたは。
public static TAdapter FindAdapter<TAdapter>(IMessageAdapter adapter)
result = Extensions.FindAdapter(adapter)
指定されたタイプでアダプターを見つけます。
- adapter
- アダプター。
戻り値: アダプターまたは。
public static IMessageAdapter FindById(IEnumerable<IMessageAdapter> adapters, Guid id)
result = Extensions.FindById(adapters, id)
指定されたキーでアダプターを取得します。
- adapters
- 利用可能なアダプターは、すべて利用可能です。
- id
- アダプター識別子。
戻り値: アダプターまたは。
public static ValueTuple<string, string> FormatToString(DataType dataType)
result = Extensions.FormatToString(dataType)
DataTypeを文字列値に変換します。
- dataType
- データ型情報。
戻り値: 文字列の値。
public static ValueTuple<CurrencyTypes?, Exception> FromMicexCurrencyName(string name)
result = Extensions.FromMicexCurrencyName(name)
MICEX 形式の通貨名をCurrencyTypesに変える。
- name
- MICEX形式の通貨名。
戻り値: 通貨タイプ。値が空の場合、返されます。
public static CurrencyTypes? FromMicexCurrencyName(string name, Action<Exception> errorHandler)
result = Extensions.FromMicexCurrencyName(name, errorHandler)
MICEX 形式の通貨名をCurrencyTypesに変える。
- name
- MICEX形式の通貨名。
- errorHandler
- エラーハンドラ。
戻り値: 通貨タイプ。値が空の場合、返されます。
public static object GetArg(MarketDataMessage mdMsg)
result = Extensions.GetArg(mdMsg)
型付き引数を取得します。
- mdMsg
- 市場データメッセージ(発信ケースの購読/退会、受信ケースでの確認イベントとして使用します)。
戻り値: データに関連付けられた追加の引数。例えば、キャンドル引数。
public static TArg GetArg<TArg>(MarketDataMessage mdMsg)
result = Extensions.GetArg(mdMsg)
型付き引数を取得します。
- mdMsg
- 市場データメッセージ(発信ケースの購読/退会、受信ケースでの確認イベントとして使用します)。
戻り値: データに関連付けられた追加の引数。例えば、キャンドル引数。
public static decimal GetBalance(ExecutionMessage message)
result = Extensions.GetBalance(message)
バランスを取る。
- message
- メッセージには、実行に関する情報が含まれています。
戻り値: 契約残高を注文する。
public static QuoteChange? GetBestAsk(IOrderBookMessage message)
result = Extensions.GetBestAsk(message)
まずは、
- message
- 市場深度。
戻り値: 質問が空でないと、または、ベストは尋ねます。
public static QuoteChange? GetBestBid(IOrderBookMessage message)
result = Extensions.GetBestBid(message)
入札をベストにゲットしよう。
- message
- 市場深度。
戻り値: 入札がない場合、または、最善の入札。
public static ValueTuple<QuoteChange?, QuoteChange?> GetBestPair(IOrderBookMessage book)
result = Extensions.GetBestPair(book)
最適なペアを獲得します。
- book
- 担当: 佐藤 宏
戻り値: 最良のペア。
public static Type GetCandleArgType(Type candleMessageType)
result = Extensions.GetCandleArgType(candleMessageType)
キャンドルラグタイプを入手してください。
- candleMessageType
- キャンドルメッセージタイプ。
戻り値: キャンドルラグタイプ。
public static Range<DateTime> GetCandleBounds(TimeSpan timeFrame, DateTime currentTime, TimeZoneInfo timeZone, WorkingTime time)
result = Extensions.GetCandleBounds(timeFrame, currentTime, timeZone, time)
交換作業パターンに比較的キャンドルタイムフレームを取得する。
- timeFrame
- 時間範囲を得る必要がある時間枠。
- currentTime
- 時間枠の範囲内の現在の時間。
- timeZone
- 交換場所のタイムゾーンに関する情報。
- time
- 交換作業パターンに関する情報。
戻り値: キャンドルタイムフレーム。
public static Range<DateTime> GetCandleBounds(TimeSpan timeFrame, DateTime currentTime)
result = Extensions.GetCandleBounds(timeFrame, currentTime)
交換作業パターンに比較的キャンドルタイムフレームを取得する。
- timeFrame
- 時間範囲を得る必要がある時間枠。
- currentTime
- 時間枠の範囲内の現在の時間。
戻り値: キャンドルタイムフレーム。
public static TimeSpan GetDefaultHistoryStepSize(IMessageAdapter adapter, SecurityId securityId, DataType dataType, TimeSpan iterationInterval)
result = Extensions.GetDefaultHistoryStepSize(adapter, securityId, dataType, iterationInterval)
歴史ダウンロードに許される最大サイズのステップを入手してください。
- adapter
- トレーディングシステムアダプタ。
- securityId
- 担当: 佐藤 宏
- dataType
- データ型情報。
- iterationInterval
- 反復との間のインターバル。
戻り値: 手順。
public static int? GetDefaultMaxCount(DataType dataType)
result = Extensions.GetDefaultMaxCount(dataType)
単一のサブスクリプションリクエストごとに最大アイテム数を取得できます。
- dataType
- データ型情報。
戻り値: アイテム数が最大。
private static QuoteChange[] GetDelta(IEnumerable<QuoteChange> from, IEnumerable<QuoteChange> to, IComparer<decimal> comparer)
result = Extensions.GetDelta(from, to, comparer)
引用符間の変更を計算するため。
- from
- ファーストクォート。
- to
- 第二引用符。
- comparer
- 方向は、引用の型を示す。
戻り値: 変更点
public static QuoteChangeMessage GetDelta(IOrderBookMessage from, IOrderBookMessage to)
result = Extensions.GetDelta(from, to)
注文書の交換を計算する。
- from
- ファーストオーダーブック
- to
- 第二注文書。
戻り値: 注文書は、増分だけ保存します。
public static T GetId<T>(CommandMessage message)
result = Extensions.GetId(message)
Get typed ObjectId.
- message
- 代表取締役社長 佐藤 浩
戻り値: Typed ObjectId.
public static decimal? GetLastTradePrice(Level1ChangeMessage message)
result = Extensions.GetLastTradePrice(message)
最後のティック取引価格を入手してください。
- message
- 市場深度。
戻り値: スプレッドの中央。引用符が空の場合、です。
public static decimal? GetMatchedVolume(IOrderMessage order)
result = Extensions.GetMatchedVolume(order)
注文のためのボリュームの実装部分を計算する。
- order
- ボリュームの実装部分が計算される順序。
戻り値: ボリュームの実装部分。
public static decimal GetMedianPrice(ICandleMessage candle)
result = Extensions.GetMedianPrice(candle)
キャンドルの仲介価格を計算します。
- candle
- 担当: 佐藤 宏
戻り値: 媒体価格。
public static OrderLogCancelReasons GetOrderLogCancelReason(ExecutionMessage item)
result = Extensions.GetOrderLogCancelReason(item)
注文ログで注文をキャンセルする理由を取得する。
- item
- ログ項目を注文する。
戻り値: 注文ログでキャンセルする理由。
public static ValueTuple<QuoteChange?, QuoteChange?> GetPair(IOrderBookMessage book, int depthIndex)
result = Extensions.GetPair(book, depthIndex)
深さ指数で引用符(入札+オファー)のペアを取得する。
- book
- 担当: 佐藤 宏
- depthIndex
- 深さ指数。ゼロインデックスは、最高の引用符のペアを意味します。
戻り値: 引用のペア。 インデックスがブックの注文深さよりも大きい場合は、返されます。
public static TimeInForce? GetPlazaTimeInForce(long status)
result = Extensions.GetPlazaTimeInForce(status)
ビットフラグからTimeInForceを抽出します。
- status
- ビットの旗。
戻り値: 代表取締役社長 佐藤 浩
public static string GetPreferredLanguage(MessageAdapterCategories? categories)
result = Extensions.GetPreferredLanguage(categories)
ご希望の言語を手に入れよう。
- categories
- メッセージアダプタのカテゴリ。
戻り値: 中国語(簡体)
public static decimal? GetPrice(IOrderBookMessage message, Sides? side)
result = Extensions.GetPrice(message, side)
サイドで価格を入手してください。
- message
- 担当: 佐藤 宏
- side
- サイド
戻り値: 値段。
public static decimal GetPriceStep(int decimals)
result = Extensions.GetPriceStep(decimals)
精度に基づいて価格の増分を取得するには.
- decimals
- 決定する。
戻り値: 価格ステップ。
public static Type GetProcessorType(IBasketSecurityProcessorProvider provider, string basketCode)
result = Extensions.GetProcessorType(provider, basketCode)
プロセッサタイプを取得します。
- provider
- 担当: 佐藤 宏
- basketCode
- バスケットの金融商品タイプ。
戻り値: プロセッサのタイプ。
public static Type GetSecurityType(IBasketSecurityProcessorProvider provider, string basketCode)
result = Extensions.GetSecurityType(provider, basketCode)
金融商品タイプを取得する
- provider
- 担当: 佐藤 宏
- basketCode
- バスケットの金融商品タイプ。
戻り値: 金融商品タイプ
public static HashSet<SecurityTypes> GetSecurityTypes(ISecurityTypesMessage message)
result = Extensions.GetSecurityTypes(message)
担当: 佐藤 浩
- message
- 特定基準のメッセージ財務機器の検索
戻り値: 金融商品の種類。
public static DateTime GetServerTime(Message message)
result = Extensions.GetServerTime(message)
メッセージをサーバーにタイムタイムタイムを付与します。
- message
- ご挨拶
戻り値: サーバー時間。
public static decimal? GetSpreadMiddle(decimal? bestBidPrice, decimal? bestAskPrice, decimal? priceStep)
result = Extensions.GetSpreadMiddle(bestBidPrice, bestAskPrice, priceStep)
スプレッドの途中で取得します。
- bestBidPrice
- 最高の入札価格。
- bestAskPrice
- 最もよい 要求価格。
- priceStep
- 担当: 佐藤 宏
戻り値: スプレッドの中央。引用符が空の場合、です。
public static decimal GetSpreadMiddle(decimal bestBidPrice, decimal bestAskPrice, decimal? priceStep)
result = Extensions.GetSpreadMiddle(bestBidPrice, bestAskPrice, priceStep)
スプレッドの途中で取得します。
- bestBidPrice
- 最高の入札価格。
- bestAskPrice
- 最もよい 要求価格。
- priceStep
- 担当: 佐藤 宏
戻り値: スプレッドの中央。引用符が空の場合、です。
public static decimal? GetSpreadMiddle(IOrderBookMessage message, decimal? priceStep)
result = Extensions.GetSpreadMiddle(message, priceStep)
スプレッドの途中で取得します。
- message
- 市場深度。
- priceStep
- 担当: 佐藤 宏
戻り値: スプレッドの中央。引用符が空の場合、です。
public static decimal? GetSpreadMiddle(Level1ChangeMessage message, decimal? priceStep)
result = Extensions.GetSpreadMiddle(message, priceStep)
スプレッドの途中で取得します。
- message
- 市場深度。
- priceStep
- 担当: 佐藤 宏
戻り値: スプレッドの中央。引用符が空の場合、です。
public static long[] GetSubscriptionIds(ISubscriptionIdMessage message)
result = Extensions.GetSubscriptionIds(message)
指定したメッセージからサブスクリプション識別子を取得します。
- message
- ご挨拶
戻り値: 識別子。
public static TimeSpan GetTimeFrame(MarketDataMessage mdMsg)
result = Extensions.GetTimeFrame(mdMsg)
指定した市場データメッセージからタイムフレームを取得します。
- mdMsg
- 市場データメッセージ(発信ケースの購読/退会、受信ケースでの確認イベントとして使用します)。
戻り値: 時間枠。
public static TimeSpan GetTimeFrame(DataType dataType)
result = Extensions.GetTimeFrame(dataType)
時間枠を取得します。
- dataType
- 代表取締役社長 佐藤 浩
戻り値: 時間枠。
public static long GetTimeFrameCount(Range<DateTime> range, TimeSpan timeFrame, WorkingTime workingTime)
result = Extensions.GetTimeFrameCount(range, timeFrame, workingTime)
指定した時間範囲内で時間枠の数を取得する。
- range
- 指定した時間範囲で、時間枠の数を取得する必要があります。
- timeFrame
- 時間枠のサイズ。
- workingTime
- 代表取締役社長 佐藤 浩
戻り値: 受信した時間枠の数。
public static IEnumerable<TimeSpan> GetTimeFrames(IMessageAdapter adapter, SecurityId securityId, DateTime? from, DateTime? to)
result = Extensions.GetTimeFrames(adapter, securityId, from, to)
指定した機器のタイムフレームを手に入れましょう。
- adapter
- トレーディングシステムアダプタ。
- securityId
- 金融商品ID
- from
- データを取得するために必要な初期日付。
- to
- データの入手に必要な最終日付。
戻り値: タイムフレームの対応が可能
public static IAsyncEnumerable<TimeSpan> GetTimeFramesAsync(IMessageAdapter adapter, SecurityId securityId, DateTime? from, DateTime? to)
result = Extensions.GetTimeFramesAsync(adapter, securityId, from, to)
指定した機器のタイムフレームを手に入れましょう。
- adapter
- トレーディングシステムアダプタ。
- securityId
- 金融商品ID
- from
- データを取得するために必要な初期日付。
- to
- データの入手に必要な最終日付。
戻り値: タイムフレームの対応が可能
public static IEnumerable<ValueTuple<QuoteChange?, QuoteChange?>> GetTopPairs(IOrderBookMessage book, int depth)
result = Extensions.GetTopPairs(book, depth)
特定のブック深さの引用符のペアを取得するには.
- book
- 担当: 佐藤 宏
- depth
- 深刻を予約します。カウントは最高の引用符です。
戻り値: スプレッド。
public static IEnumerable<QuoteChange> GetTopQuotes(IOrderBookMessage book, int depth)
result = Extensions.GetTopQuotes(book, depth)
特定のブック深さの引用符を取得するには.
- book
- 担当: 佐藤 宏
- depth
- 深刻予約。 引用は入札からオファーまで増加する価格の順にあります。
戻り値: スプレッド。
public static decimal GetTradePrice(ExecutionMessage message)
result = Extensions.GetTradePrice(message)
担当: 佐藤 浩
- message
- メッセージには、実行に関する情報が含まれています。
戻り値: 貿易価格。
public static decimal GetTradeVolume(ExecutionMessage message)
result = Extensions.GetTradeVolume(message)
担当: 佐藤 浩
- message
- メッセージには、実行に関する情報が含まれています。
戻り値: 貿易量。
public static decimal GetTypicalPrice(ICandleMessage candle)
result = Extensions.GetTypicalPrice(candle)
キャンドルの典型的な価格を計算します。
- candle
- 担当: 佐藤 宏
戻り値: 典型的な価格。
public static string GetUnderlyingCode(SecurityMessage secMsg)
result = Extensions.GetUnderlyingCode(secMsg)
資産を下回る
- secMsg
- 担当: 佐藤 宏
戻り値: 資産の状況
public static QuoteChangeMessage Group(IOrderBookMessage depth, decimal priceRange)
result = Extensions.Group(depth, priceRange)
注文書を価格帯でグループ化するため。
- depth
- 集会するオーダーブック
- priceRange
- 集団が行う価格帯。
戻り値: 団体注文書。
public static QuoteChange[] Group(QuoteChange[] quotes, Sides side, decimal priceRange)
result = Extensions.Group(quotes, side, priceRange)
値範囲で引用をグループ化します。
- quotes
- 引用符をグループ化します。.
- side
- サイド。
- priceRange
- 集団が行う価格帯。
戻り値: 引用符をグループ化しました。
public static bool HasChanges<TMessage, TChange>(BaseChangeMessage<TMessage, TChange> message)
result = Extensions.HasChanges(message)
メッセージに変化が含まれているかどうかを判断します。
- message
- 変更メッセージ
戻り値: 結果をチェックする。
public static bool HasOrderId(OrderStatusMessage message)
result = Extensions.HasOrderId(message)
指定したメッセージに単一の注文リクエストが含まれていることを確認します。
- message
- ご挨拶
戻り値: 結果をチェックする。
public static bool HasOrderInfo(ExecutionMessage message)
result = Extensions.HasOrderInfo(message)
指定したメッセージが注文情報を含むかどうかを判断します。
- message
- メッセージを送信する
戻り値: 指定されたメッセージに注文情報が含まれている場合、それ以外の場合は .
public static bool HasSubscriptionId(ISubscriptionIdMessage message)
result = Extensions.HasSubscriptionId(message)
指定したメッセージのサブスクリプション識別子を確認します。
- message
- ご挨拶
戻り値: 識別子。
public static bool HasTradeInfo(ExecutionMessage message)
result = Extensions.HasTradeInfo(message)
指定したメッセージが取引情報を含むかどうかを判断します。
- message
- メッセージを送信する
戻り値: 指定されたメッセージがトレード情報を含む場合、それ以外の場合は .
public static Sides Invert(Sides side)
result = Extensions.Invert(side)
方向を反対に変える。
- side
- 初期方向。
戻り値: 反対方向。
public static bool IsAllSecurity(ISecurityIdMessage message)
result = Extensions.IsAllSecurity(message)
指定されたISecurityIdMessageがSecurityIdであるかどうかを確認してください。
- message
- 担当: 佐藤 宏
戻り値: , 指定されたISecurityIdMessageがSecurityId@の場合, それ以外の場合は, .
public static bool IsAllSecurity(SecurityId securityId)
result = Extensions.IsAllSecurity(securityId)
指定されたSecurityIdがSecurityIdであるかどうかを確認してください。
- securityId
- 担当: 佐藤 宏
戻り値: , 指定されたSecurityIdがSecurityId@の場合, それ以外の場合は, .
public static bool IsAssociated(SecurityId securityId, string boardCode)
result = Extensions.IsAssociated(securityId, boardCode)
基板に関連した金融商品IDを指定します。
- securityId
- 金融商品ID
- boardCode
- ボードコード。
戻り値: , 関連する場合, その他, .
public static bool IsBack(IMessage message)
result = Extensions.IsBack(message)
指定されたメッセージがループバックであることを決定します。
- message
- ご挨拶
戻り値: ループバックメッセージです。
public static bool IsBasket(SecurityMessage security)
result = Extensions.IsBasket(security)
指定された金融商品がバスケットです。
- security
- 金融商品取引
戻り値: 結果をチェックする。
public static bool IsBestAskField(Level1Fields field)
result = Extensions.IsBestAskField(field)
指定されたLevel1Fieldsは、最もよく尋ねる関連しています。
- field
- フィールド。
戻り値: 結果をチェックする。
public static bool IsBestBidField(Level1Fields field)
result = Extensions.IsBestBidField(field)
指定されたLevel1Fieldsは、最高の入札に関連しています。
- field
- フィールド。
戻り値: 結果をチェックする。
public static bool IsBuildOnly(Type candleType)
result = Extensions.IsBuildOnly(candleType)
指定したキャンドルタイプが、基礎データからのみビルドできるかどうかを判断します。
- candleType
- キャンドルメッセージの種類。
戻り値: 結果をチェックする。
public static bool IsCanceled(IOrderMessage order)
result = Extensions.IsCanceled(order)
注文がキャンセルされたかどうか確認するため。
- order
- チェックする順序。
戻り値: 、注文がキャンセルされた場合、そうでなければ。
public static bool IsCandle(MessageTypes type)
result = Extensions.IsCandle(type)
キャンドルのデータ型を決める。
- type
- メッセージタイプ。
戻り値: 、データ型がキャンドルの場合、そうでなければ、。
public static bool IsCandleMessage(Type messageType)
result = Extensions.IsCandleMessage(messageType)
指定したメッセージタイプがCandleMessageから派生しているかを判定します。
- messageType
- メッセージタイプ。
戻り値: 指定されたメッセージタイプがCandleMessageから派生している場合、それ以外の場合は、.
public static ValueTask<bool> IsCandlesSupportedAsync(IMessageAdapter adapter, MarketDataMessage subscription, CancellationToken cancellationToken)
result = Extensions.IsCandlesSupportedAsync(adapter, subscription, cancellationToken)
指定されたサブスクリプションがアダプターによってサポートされているかどうかを判断します。
- adapter
- アダプター。
- subscription
- サブスクリプション。
- cancellationToken
- 担当: 佐藤 宏
戻り値: 指定されたサブスクリプションリクエストがサポートされている場合、それ以外の場合は .
public static bool IsContainsCandle(Level1ChangeMessage level1)
result = Extensions.IsContainsCandle(level1)
チェックするには、レベル1のデータにIsCandlesがあります。
- level1
- Level1 データ。
戻り値: 試験結果。
public static bool IsContainsQuotes(Level1ChangeMessage level1)
result = Extensions.IsContainsQuotes(level1)
チェックするには、Level1 に引用符があります。
- level1
- Level1 データ。
戻り値: 見積り
public static bool IsContainsTick(Level1ChangeMessage level1)
result = Extensions.IsContainsTick(level1)
チェックするには、Level1のデータにティックデータがあります。
- level1
- Level1 データ。
戻り値: 試験結果。
public static bool IsFinal(OrderStates state)
result = Extensions.IsFinal(state)
指定された状態が最終状態(Done または Failed)です。
- state
- 注文状態。
戻り値: 結果をチェックする。
public static bool IsFinal(IOrderBookMessage depth)
result = Extensions.IsFinal(depth)
注文書が最終決定かどうかを判断します。
- depth
- 注文書のメッセージ。
戻り値: 注文書が最終の場合には、そうでなければ。
public static bool IsFullEmpty(IOrderBookMessage depth)
result = Extensions.IsFullEmpty(depth)
決定するには、注文書は空です。
- depth
- 市場深度。
戻り値: , 注文書が空の場合, それ以外の場合は, .
public static bool IsHalfEmpty(IOrderBookMessage depth)
result = Extensions.IsHalfEmpty(depth)
決定するには、注文書半身です。
- depth
- 市場深度。
戻り値: 、注文書が半空の場合、そうでなければ、。
public static bool IsHistoryOnly(ISubscriptionMessage message)
result = Extensions.IsHistoryOnly(message)
指定したメッセージに、履歴リクエストのみが含まれていることを確認します。
- message
- サブスクリプション。
戻り値: 結果をチェックする。
public static bool IsIndex(SecurityMessage security)
result = Extensions.IsIndex(security)
金融商品がインデックスとなります。
- security
- 金融商品取引
戻り値: 結果をチェックする。
public static bool IsIntraday(TimeSpan tf)
result = Extensions.IsIntraday(tf)
指定された時間枠が不定日であることを決定します。
- tf
- 時間枠。
戻り値: 結果をチェックする。
public static bool IsLastTradeField(Level1Fields field)
result = Extensions.IsLastTradeField(field)
指定されたLevel1Fieldsは、最後の取引に関連しています。
- field
- フィールド。
戻り値: 結果をチェックする。
public static bool IsLookup(MessageTypes type)
result = Extensions.IsLookup(type)
指定したメッセージタイプが検索されるかどうかを判断します。
- type
- 担当: 佐藤 宏
戻り値: 結果をチェックする。
public static bool IsLookup(IMessage message)
result = Extensions.IsLookup(message)
指定したメッセージが検索されるかどうかを判断します。
- message
- 新着情報
戻り値: 結果をチェックする。
public static bool IsLookupAll(SecurityLookupMessage criteria)
result = Extensions.IsLookupAll(criteria)
含まれているすべてのフィルターを調べます。
- criteria
- フィールドがフィルタとして使用される機器。
戻り値: 結果をチェックする。
public static bool IsMarketData(ExecutionMessage execMsg)
result = Extensions.IsMarketData(execMsg)
市場データ情報を含むかどうかを判断します。
- execMsg
- メッセージには、実行に関する情報が含まれています。
戻り値: 結果をチェックする。
public static bool IsMarketData(IMessageAdapter adapter)
result = Extensions.IsMarketData(adapter)
指定されたアダプターサポート市場データです。
- adapter
- アダプター。
戻り値: 結果をチェックする。
public static ValueTask<bool> IsMarketDataTypeSupportedAsync(IMessageAdapter adapter, DataType type, CancellationToken cancellationToken)
result = Extensions.IsMarketDataTypeSupportedAsync(adapter, type, cancellationToken)
指定された市場データ型がアダプターによってサポートされているかどうかを判断します。
- adapter
- アダプター。
- type
- メッセージタイプ。
- cancellationToken
- 担当: 佐藤 宏
戻り値: 指定されたメッセージタイプがサポートされている場合は、それ以外の場合は .
public static bool IsMatch(ExecutionMessage transaction, OrderStatusMessage criteria, ISet<OrderStates> states)
result = Extensions.IsMatch(transaction, criteria, states)
指定されたトランザクションが検索条件に一致しているかどうかを判断します。
- transaction
- 取引。
- criteria
- フィールドがフィルタとして使用される順序。
- states
- 指定された状態のフィルター順。
戻り値: 結果をチェックする。
public static bool IsMatch(SecurityMessage security, SecurityLookupMessage criteria, HashSet<SecurityTypes> secTypes)
result = Extensions.IsMatch(security, criteria, secTypes)
指定された金融商品が検索条件に一致しているかどうかを判断します。
- security
- 金融商品取引
- criteria
- 特定基準のメッセージ財務機器の検索
- secTypes
- 金融商品の種類。
戻り値: 結果をチェックする。
public static bool IsMatch(SecurityMessage security, SecurityLookupMessage criteria)
result = Extensions.IsMatch(security, criteria)
指定された金融商品が検索条件に一致しているかどうかを判断します。
- security
- 金融商品取引
- criteria
- 特定基準のメッセージ財務機器の検索
戻り値: 結果をチェックする。
public static bool IsMatch(ExecutionMessage transaction, OrderStatusMessage criteria)
result = Extensions.IsMatch(transaction, criteria)
指定されたメッセージが一致する検索条件を決定します。
- transaction
- 取引。
- criteria
- フィールドがフィルタとして使われるメッセージ。
戻り値: 結果をチェックする。
public static bool IsMatch(PositionChangeMessage position, PortfolioLookupMessage criteria, bool compareName)
result = Extensions.IsMatch(position, criteria, compareName)
指定されたメッセージが一致する検索条件を決定します。
- position
- ポジション。
- criteria
- フィールドがフィルタとして使われるメッセージ。
- compareName
- Fully compare PortfolioName.
戻り値: 結果をチェックする。
public static bool IsMatch(PortfolioMessage portfolio, PortfolioLookupMessage criteria, bool compareName)
result = Extensions.IsMatch(portfolio, criteria, compareName)
指定されたメッセージが一致する検索条件を決定します。
- portfolio
- ポートフォリオ
- criteria
- フィールドがフィルタとして使われるメッセージ。
- compareName
- Fully compare PortfolioName.
戻り値: 結果をチェックする。
public static bool IsMatch(BoardMessage board, BoardLookupMessage criteria)
result = Extensions.IsMatch(board, criteria)
指定されたメッセージが一致する検索条件を決定します。
- board
- ボード。
- criteria
- フィールドがフィルタとして使われるメッセージ。
戻り値: 結果をチェックする。
public static bool IsMatch(ISubscriptionIdMessage message, MessageTypes type, ISubscriptionMessage criteria)
result = Extensions.IsMatch(message, type, criteria)
指定されたメッセージが一致する検索条件を決定します。
- message
- ご挨拶
- type
- 仕様
- criteria
- フィールドがフィルタとして使われるメッセージ。
戻り値: 結果をチェックする。
public static bool IsMatched(IOrderMessage order)
result = Extensions.IsMatched(order)
チェックするには、完全に一致する注文です。
- order
- チェックする順序。
戻り値: 、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、もし、
public static bool IsMatchedEmpty(IOrderMessage order)
result = Extensions.IsMatchedEmpty(order)
注文が実施されていない場合は、チェックするには、
- order
- チェックする順序。
戻り値: 契約が実施されていない場合、それ以外の場合は .
public static bool IsMatchedPartially(IOrderMessage order)
result = Extensions.IsMatchedPartially(order)
チェックするには、順番にボリュームの一部が実装されています。
- order
- チェックする順序。
戻り値: , ボリュームの一部が実装されている場合, それ以外の場合は .
public static bool IsMessageSupported(IMessageAdapter adapter, MessageTypes type)
result = Extensions.IsMessageSupported(adapter, type)
指定したメッセージタイプがSupportedInMessagesに含まれているかを決定します。
- adapter
- アダプター。
- type
- メッセージタイプ。
戻り値: 指定されたメッセージタイプがサポートされている場合は、それ以外の場合は .
public static bool IsMoney(SecurityId secId)
result = Extensions.IsMoney(secId)
指定された ID がお金 ID であるかどうかを確認してください。
- secId
- 位置変更に関する情報がメッセージに含まれています。
戻り値: 結果をチェックする。
public static bool IsMoney(PositionChangeMessage posMsg)
result = Extensions.IsMoney(posMsg)
指定されたメッセージがマネーポジションを含むことを確認します。
- posMsg
- 位置変更に関する情報がメッセージに含まれています。
戻り値: 結果をチェックする。
public static bool IsNotSupported(SubscriptionResponseMessage message)
result = Extensions.IsNotSupported(message)
返信にエラー@NotSupportedが含まれているかどうかを決定します。
- message
- 返信する。
戻り値: 結果をチェックする。
public static string Iso10962(SecurityMessage security)
result = Extensions.Iso10962(security)
ISO 10962規格の機器の機種を取得する
- security
- 金融商品取引
戻り値: ISO 10962規格の型式
public static OptionTypes? Iso10962ToOptionType(string cfi)
result = Extensions.Iso10962ToOptionType(cfi)
ISO 10962規格の型をOptionTypesに変える。
- cfi
- ISO 10962規格の型式
戻り値: オプションタイプ。
public static SecurityTypes? Iso10962ToSecurityType(string cfi)
result = Extensions.Iso10962ToSecurityType(cfi)
ISO 10962規格の型をSecurityTypesに変える。
- cfi
- ISO 10962規格の型式
戻り値: 金融商品タイプ
public static bool IsObsolete(Level1Fields field)
result = Extensions.IsObsolete(field)
指定されたLevel1Fieldsが廃止されました。
- field
- Level1Fields 値。
戻り値: , 等しい場合, それ以外の場合は, ない obsolete.
public static bool IsObsolete(PositionChangeTypes type)
result = Extensions.IsObsolete(type)
指定されたPositionChangeTypesはObsoleteAttributeにマークされています。
- type
- 担当: 佐藤 浩一
戻り値: , 等しい場合, それ以外の場合は, ない obsolete.
public static bool IsOk(IErrorMessage message)
result = Extensions.IsOk(message)
返信にエラーエラーが含まれているかどうかを判断します。
- message
- 担当: 佐藤 宏
戻り値: 結果をチェックする。
public static bool IsOpened(IMessageChannel channel)
result = Extensions.IsOpened(channel)
チャンネルが開いている。
- channel
- メッセージチャネル。
戻り値: 結果をチェックする。
public static bool IsOrderLogCanceled(ExecutionMessage item)
result = Extensions.IsOrderLogCanceled(item)
チェックするには、文字列はキャンセルされた順序を含む。
- item
- ログ項目を注文する。
戻り値: 、もし文字列がキャンセルされた順序を含まれている場合、そうでなければ、 。
public static bool IsOrderLogMatched(ExecutionMessage item)
result = Extensions.IsOrderLogMatched(item)
チェックするには、文字列は注文マッチングを含む。
- item
- ログ項目を注文する。
戻り値: 文字列が順序の一致を含んでいる場合、そうでなければ。
public static bool IsOrderLogRegistered(ExecutionMessage item)
result = Extensions.IsOrderLogRegistered(item)
チェックするには、文字列には、注文登録が含まれている。
- item
- ログ項目を注文する。
戻り値: , 文字列が注文登録を含んだ場合, それ以外の場合は .
public static bool IsPlazaSystem(long status)
result = Extensions.IsPlazaSystem(status)
ビットフラグからシステム属性を抽出します。
- status
- ビットの旗。
戻り値: 注文がシステムの場合、そうでなければ、。
public static bool IsResultMessageNotSupported(IMessageAdapter adapter, MessageTypes type)
result = Extensions.IsResultMessageNotSupported(adapter, type)
指定したメッセージタイプがNotSupportedResultMessagesに含まれているかを決定します。
- adapter
- アダプター。
- type
- メッセージタイプ。
戻り値: 指定されたメッセージタイプがサポートされている場合は、それ以外の場合は .
public static bool IsSet(Unit value)
result = Extensions.IsSet(value)
値がセットされていることを決定します。
- value
- ユニット
戻り値: 結果をチェックする。
public static bool IsStorageSupported(DataType dataType)
result = Extensions.IsStorageSupported(dataType)
指定したデータ型がストレージによってサポートされているかどうかを判断します。
- dataType
- 担当: 佐藤 宏
戻り値: 結果をチェックする。
public static bool IsSupportSecuritiesLookupAll(IMessageAdapter adapter)
result = Extensions.IsSupportSecuritiesLookupAll(adapter)
金融商品全般の見解をサポート
- adapter
- アダプター。
戻り値: 結果をチェックする。
public static bool IsSupportStopLoss(IMessageAdapter adapter)
result = Extensions.IsSupportStopLoss(adapter)
アダプターサポート停止ロスの注文かどうかを決定します。
- adapter
- アダプター。
戻り値: 結果をチェックする。
public static bool IsSupportTakeProfit(IMessageAdapter adapter)
result = Extensions.IsSupportTakeProfit(adapter)
アダプターサポートが非営利の注文を取っているかどうかを判断します。
- adapter
- アダプター。
戻り値: 結果をチェックする。
public static bool IsSupportWithdraw(IMessageAdapter adapter)
result = Extensions.IsSupportWithdraw(adapter)
アダプターサポートが注文を引き出すかどうかを決定します。
- adapter
- アダプター。
戻り値: 結果をチェックする。
public static bool IsToday(DateTime date)
result = Extensions.IsToday(date)
指定した日付を今日確認するため。
- date
- 指定した日付。
戻り値: 指定された日付が今日の場合、そうでなければ、 .
public static bool IsToday(DateTime? date)
result = Extensions.IsToday(date)
指定した日付を今日確認するため。
- date
- 指定した日付。
戻り値: 指定された日付が今日の場合、そうでなければ、 .
public static bool IsTransactional(IMessageAdapter adapter)
result = Extensions.IsTransactional(adapter)
指定されたアダプターサポートトランザクションです。
- adapter
- アダプター。
戻り値: 結果をチェックする。
public static bool IsWorkingDate(BoardMessage board, DateTime date, bool checkHolidays)
result = Extensions.IsWorkingDate(board, date, checkHolidays)
チェックのため、日付が取引されているかどうかを確認します。
- board
- ボード情報
- date
- チェックする日付を過ぎます。
- checkHolidays
- 平日の渡された日付を調べるかどうか(土・日は休み、それらに対する返された値)。
戻り値: , 取引日がない場合, それ以外の場合は, 取引されていません.
public static bool IsWorkingTime(BoardMessage board, DateTime time, bool? isWorkingDay, WorkingTimePeriod period)
result = Extensions.IsWorkingTime(board, time, isWorkingDay, period)
チェックするには、時間が取引されているかどうか(セッションが始まり、終了したかどうか、クリアしている)。
- board
- ボード情報
- time
- チェックする時間を渡します。
- isWorkingDay
- , 取引日がない場合, それ以外の場合は, 取引されていません.
- period
- 現職期間
戻り値: , 貿易される時間がなければ, それ以外の場合は, 取引されていない.
public static bool IsWorkingTime(BoardMessage board, DateTime time)
result = Extensions.IsWorkingTime(board, time)
チェックするには、時間が取引されているかどうか(セッションが始まり、終了したかどうか、クリアしている)。
- board
- ボード情報
- time
- チェックする時間を渡します。
戻り値: , 貿易される時間がなければ, それ以外の場合は, 取引されていない.
public static QuoteChangeMessage Join(IOrderBookMessage original, IOrderBookMessage rare)
result = Extensions.Join(original, rare)
初期注文書とそのスパース表現を融合する。
- original
- 初期注文書。
- rare
- 注文書のスパース
戻り値: 合併注文書。
public static DateTime LastTradeDay(BoardMessage board, DateTime date, bool checkHolidays)
result = Extensions.LastTradeDay(board, date, checkHolidays)
取引の最終日を取得します。
- board
- ボード情報
- date
- チェック開始日
- checkHolidays
- 平日の渡された日付を調べるかどうか(土・日は休み、それらに対する返された値)。
戻り値: 取引最終日。
public static IEnumerable<SecurityMessage> LookupByCode(ISecurityMessageProvider provider, string code, SecurityTypes? type)
result = Extensions.LookupByCode(provider, code, type)
楽器コードで楽器を取得する。
- provider
- 機器に関する情報提供者
- code
- 金融商品コード。
- type
- 金融商品タイプ
戻り値: 取得楽器。条件を与えられた楽器がない場合、返却されます。
public static IAsyncEnumerable<SecurityMessage> LookupByCodeAsync(ISecurityMessageProvider provider, string code, SecurityTypes? type)
result = Extensions.LookupByCodeAsync(provider, code, type)
楽器コードで楽器を取得する。
- provider
- 機器に関する情報提供者
- code
- 金融商品コード。
- type
- 金融商品タイプ
戻り値: 取得楽器。条件を与えられた楽器がない場合、返却されます。
public static SecurityMessage LookupMessageById(ISecurityMessageProvider provider, SecurityId id)
result = Extensions.LookupMessageById(provider, id)
識別子で機器を取得するには.
- provider
- 担当: 佐藤 宏
- id
- 金融商品ID
戻り値: 取得楽器。条件を与えられた楽器がない場合、返却されます。
public static IEnumerable<SecurityMessage> LookupMessages(ISecurityMessageProvider provider, SecurityLookupMessage criteria)
result = Extensions.LookupMessages(provider, criteria)
基準による金融商品を探る。
- provider
- 担当: 佐藤 宏
- criteria
- 特定基準のメッセージ財務機器の検索
戻り値: 鋳造された器械。
public static TMessage LoopBack<TMessage>(TMessage message, IMessageAdapter adapter, MessageBackModes mode)
result = Extensions.LoopBack(message, adapter, mode)
指定したメッセージはBackMode@にしてください。
- message
- ご挨拶
- adapter
- アダプター。
- mode
- バックモード。
戻り値: ご挨拶
public static Uri MakeVectorIconUri(string key)
result = Extensions.MakeVectorIconUri(key)
アイコンをゲット uri
public static int? NearestSupportedDepth(IMessageAdapter adapter, int depth)
result = Extensions.NearestSupportedDepth(adapter, depth)
指定された深さを最も近いサポートします。
- adapter
- アダプター。
- depth
- 奥行き。
戻り値: 対応深さ
public static DataType PnF(PnFArg arg)
result = Extensions.PnF(arg)
データをPnFCandleMessage@に作成します。
- arg
- キャンドルアーグ。
戻り値: データ型情報。
public static DataType Portfolio(string portfolioName)
result = Extensions.Portfolio(portfolioName)
データをPortfolioMessage@に作成します。
- portfolioName
- ポートフォリオ名
戻り値: データ型情報。
public static DataType Range(Unit arg)
result = Extensions.Range(arg)
データをRangeCandleMessage@に作成します。
- arg
- キャンドルアーグ。
戻り値: データ型情報。
public static void RegisterCandleType<TArg>(Type messageType, MessageTypes type, string fileName, Func<string, TArg> argParse, Func<TArg, string> argToString, Func<TArg, bool> argValidator, bool isBuildOnly)
Extensions.RegisterCandleType(messageType, type, fileName, argParse, argToString, argValidator, isBuildOnly)
新規キャンドルタイプを登録します。
- messageType
- キャンドルメッセージの種類。
- type
- メッセージタイプ。
- fileName
- ファイル名。
- argParse
- コンバーターへの文字列。
- argToString
- 文字列コンバーターへ。
- argValidator
- ラグバリデータ
- isBuildOnly
- キャンドルタイプは、基礎的なデータからのみビルドできます。
public static void RemoveMarketDataSupport(MessageAdapter adapter)
Extensions.RemoveMarketDataSupport(adapter)
市場データに関連するSupportedInMessagesメッセージタイプから削除します。
- adapter
- アダプター。
public static void RemoveNotSupportedResultMessage(MessageAdapter adapter, MessageTypes type)
Extensions.RemoveNotSupportedResultMessage(adapter, type)
送信先のメールアドレスはNotSupportedResultMessages@から削除してください。
- adapter
- アダプター。
- type
- メッセージタイプ。
public static void RemoveSupportedAllMarketDataTypes(MessageAdapter adapter)
Extensions.RemoveSupportedAllMarketDataTypes(adapter)
DateTime} から全ての市場データタイプを削除します。
- adapter
- アダプター。
public static void RemoveSupportedMarketDataType(MessageAdapter adapter, DataType type)
Extensions.RemoveSupportedMarketDataType(adapter, type)
DateTime} から市場データタイプを削除します。
- adapter
- アダプター。
- type
- 市場データ型。
public static void RemoveSupportedMessage(MessageAdapter adapter, MessageTypes type)
Extensions.RemoveSupportedMessage(adapter, type)
送信先のメールアドレスはPossibleSupportedMessages@から削除してください。
- adapter
- アダプター。
- type
- メッセージタイプ。
public static void RemoveTransactionalSupport(MessageAdapter adapter)
Extensions.RemoveTransactionalSupport(adapter)
トランザクションに関連するSupportedInMessagesメッセージタイプから削除します。
- adapter
- アダプター。
public static DataType Renko(Unit arg)
result = Extensions.Renko(arg)
データをRenkoCandleMessage@に作成します。
- arg
- キャンドルアーグ。
戻り値: データ型情報。
public static Message ReplaceSecurityId(Message message, SecurityId securityId)
result = Extensions.ReplaceSecurityId(message, securityId)
指定された金融商品IDを置換します。
- message
- ご挨拶
- securityId
- 金融商品ID
戻り値: ご挨拶
public static long SafeGetOrderId(ExecutionMessage message)
result = Extensions.SafeGetOrderId(message)
注文識別子を取得するには、情報が利用できない場合は例外を捨てる。
- message
- オペレーション。
戻り値: 注文ID。
public static decimal SafeGetVolume(ExecutionMessage message)
result = Extensions.SafeGetVolume(message)
操作回数を取得するか、または例外を捨てるには、情報が利用できない場合は。
- message
- オペレーション。
戻り値: 数量。
public static void SetId<T>(CommandMessage message, T id)
Extensions.SetId(message, id)
Set typed ObjectId.
- message
- 代表取締役社長 佐藤 浩
- id
- Typed ObjectId.
public static SecurityId SetNativeId(SecurityId secId, object nativeId)
result = Extensions.SetNativeId(secId, nativeId)
ネイティブを初期化
- secId
- 金融商品ID
- nativeId
- ネイティブ(内部)取引システム金融商品ID。
戻り値: 金融商品ID
public static void SetSecurityCode(SecurityMessage message, string secCode)
Extensions.SetSecurityCode(message, secCode)
Initialize SecurityCode.
- message
- 金融商品に関する情報を含むメッセージ。
- secCode
- 金融商品コード。
public static void SetSecurityTypes(ISecurityTypesMessage message, SecurityTypes? type, IEnumerable<SecurityTypes> types)
Extensions.SetSecurityTypes(message, type, types)
Initialize SecurityTypes.
- message
- 特定基準のメッセージ財務機器の検索
- type
- 金融商品タイプ
- types
- 金融商品の種類。
public static TMessage SetSubscriptionIds<TMessage>(TMessage message, long[] subscriptionIds, long subscriptionId)
result = Extensions.SetSubscriptionIds(message, subscriptionIds, subscriptionId)
サブスクリプション識別子を指定したメッセージにセットします。
- message
- ご挨拶
- subscriptionIds
- 識別子。
- subscriptionId
- 識別子。
戻り値: ご挨拶
public static decimal ShrinkPrice(decimal price, decimal? priceStep, int? decimals, ShrinkRules rule)
result = Extensions.ShrinkPrice(price, priceStep, decimals, rule)
コストを削減するには、コンマの後に複数の兆候を制限するために、最小限のステップを複数にするために。
- price
- 複数行なうべき価格。
- priceStep
- 価格ステップ。
- decimals
- coma の後の価格の数字の数。
- rule
戻り値: 複数の価格。
public static decimal ShrinkPrice(decimal price, SecurityMessage secMsg, ShrinkRules rule)
result = Extensions.ShrinkPrice(price, secMsg, rule)
コストを削減するには、コンマの後に複数の兆候を制限するために、最小限のステップを複数にするために。
- price
- 複数行なうべき価格。
- secMsg
- 担当: 佐藤 宏
- rule
戻り値: 複数の価格。
public static ValueTuple<QuoteChange[], QuoteChange[]> Sparse(QuoteChange bid, QuoteChange ask, decimal priceRange, decimal? priceStep, int maxDepth)
result = Extensions.Sparse(bid, ask, priceRange, priceStep, maxDepth)
引用符のフォームペアを作成するには、ペア間の範囲に含まれている引用符のスパースコレクション。
- bid
- 入札者
- ask
- 問い合わせ
- priceRange
- 最低価格ステップ。
- priceStep
- 金融商品価格ステップ。
- maxDepth
- 最高の深さ。
戻り値: 引用のスパースコレクション。
public static QuoteChange[] Sparse(QuoteChange[] quotes, Sides side, decimal priceRange, decimal? priceStep, int maxDepth)
result = Extensions.Sparse(quotes, side, priceRange, priceStep, maxDepth)
通常の引用符から引用符のスパースコレクションを作成する。
- quotes
- 正規引用。コレクションには、同じ方向の引用符(入札のみまたはオファーのみ)が含まれています。
- side
- サイド。
- priceRange
- 最低価格ステップ。
- priceStep
- 金融商品価格ステップ。
- maxDepth
- 最高の深さ。
戻り値: 引用のスパースコレクション。
public static QuoteChangeMessage Sparse(IOrderBookMessage depth, decimal priceRange, decimal? priceStep, int maxDepth)
result = Extensions.Sparse(depth, priceRange, priceStep, maxDepth)
通常のオーダーブックから作るには、スパースの1本を予約します。
- depth
- 通常の注文書。
- priceRange
- 最低価格ステップ。
- priceStep
- 金融商品価格ステップ。
- maxDepth
- 最高の深さ。
戻り値: 注文書のスパース
public static ValueTuple<string, string> SplitToPair(string symbol)
result = Extensions.SplitToPair(symbol)
ペアリングに分割します。
- symbol
- シンボル。
戻り値: ペア。
public static DataType Tick(int arg)
result = Extensions.Tick(arg)
データをTickCandleMessage@に作成します。
- arg
- キャンドルアーグ。
戻り値: データ型情報。
public static DataType TimeFrame(TimeSpan tf)
result = Extensions.TimeFrame(tf)
データをTimeFrameCandleMessage@に作成します。
- tf
- キャンドルアーグ。
戻り値: データ型情報。
public static Type ToCandleMessage(MessageTypes type)
result = Extensions.ToCandleMessage(type)
CandleMessage に MessageTypes を投げる。
- type
- キャンドルタイプ。
戻り値: 代表挨拶:CandleMessage@
public static Type ToCandleMessageType(MessageTypes type)
result = Extensions.ToCandleMessageType(type)
キャンドルの種類CandleMessage@に変える
- type
- メッセージタイプ。
戻り値: キャンドルタイプ。
public static DataType ToDataType(string type, string arg)
result = Extensions.ToDataType(type, arg)
文字列を@DataType@値に変換します。
- type
- 型 号
- arg
- ラグ。
戻り値: データ型情報。
public static DataType ToDataType(ExecutionTypes type)
result = Extensions.ToDataType(type)
ExecutionTypesをDataType値に変換します。
- type
- 代表取締役社長 佐藤 浩
戻り値: 代表取締役社長 佐藤 浩
public static object ToDataTypeArg(Type messageType, string str)
result = Extensions.ToDataTypeArg(messageType, str)
キャンドルの引数の文字列表現を修飾に変換する。
- messageType
- キャンドルメッセージの種類。
- str
- 引数の文字列表現。
戻り値: 引数。
public static ErrorMessage ToErrorMessage(Exception error, long originalTransactionId)
result = Extensions.ToErrorMessage(error, originalTransactionId)
エラー情報をErrorMessageに変える
- error
- エラー情報。
- originalTransactionId
- 原文のIDは、このメッセージが応答するTransactionIdのメッセージです。
戻り値: エラーメッセージ。
public static ErrorMessage ToErrorMessage(string description)
result = Extensions.ToErrorMessage(description)
エラーテキストメッセージをErrorMessage@に変換します。
- description
- エラーテキストメッセージ。
戻り値: ErrorMessage インスタンス。
public static ExecutionMessage ToExec(OrderRegisterMessage regMsg)
result = Extensions.ToExec(regMsg)
代表取締役社長 佐藤 浩一
- regMsg
- 注文登録情報を含むメッセージ。
戻り値: メッセージには、実行に関する情報が含まれています。
public static ExecutionTypes ToExecutionType(DataType type)
result = Extensions.ToExecutionType(type)
DataTypeをExecutionTypes値に変換します。
- type
- 代表取締役社長 佐藤 浩
戻り値: 代表取締役社長 佐藤 浩
public static MessageTypeInfo ToInfo(MessageTypes type, bool? isMarketData)
result = Extensions.ToInfo(type, isMarketData)
MessageTypesをMessageTypeInfo値に変換します。
- type
- 担当: 佐藤 浩一
- isMarketData
- 市場データ。
戻り値: 担当: 佐藤 浩一
public static Level1ChangeMessage ToLevel1(IOrderBookMessage message)
result = Extensions.ToLevel1(message)
IOrderBookMessageをLevel1ChangeMessage値に変換します。
- message
- IOrderBookMessage インスタンス。
戻り値: Level1ChangeMessage インスタンス。
public static Level1ChangeMessage ToLevel1(ExecutionMessage message)
result = Extensions.ToLevel1(message)
ExecutionMessageをLevel1ChangeMessage値に変換します。
- message
- ExecutionMessage インスタンス。
戻り値: Level1ChangeMessage インスタンス。
public static IEnumerable<Level1ChangeMessage> ToLevel1(IEnumerable<QuoteChangeMessage> quotes)
result = Extensions.ToLevel1(quotes)
注文書からLevel1を作成する
- quotes
- 書籍の注文
戻り値: レベル1。
public static IEnumerable<Level1ChangeMessage> ToLevel1(IEnumerable<ExecutionMessage> items, IOrderLogMarketDepthBuilder builder, TimeSpan interval)
result = Extensions.ToLevel1(items, builder, interval)
注文ログからLevel1を作成する。
- items
- ログラインを注文します。
- builder
- ログをマーケットデプスビルダーに注文する。
- interval
- 注文書生成の間隔。デフォルトはゼロです。これは、注文ログの各新しい項目で書籍の生成を注文することを意味します。
戻り値: ティック取引.
public static IAsyncEnumerable<Level1ChangeMessage> ToLevel1(IAsyncEnumerable<QuoteChangeMessage> quotes)
result = Extensions.ToLevel1(quotes)
注文書からLevel1を作成する
- quotes
- 書籍の注文
戻り値: レベル1。
public static IAsyncEnumerable<Level1ChangeMessage> ToLevel1(IAsyncEnumerable<ExecutionMessage> items, IOrderLogMarketDepthBuilder builder, TimeSpan interval)
result = Extensions.ToLevel1(items, builder, interval)
注文ログからLevel1を作成する。
- items
- ログラインを注文します。
- builder
- ログをマーケットデプスビルダーに注文する。
- interval
- 注文書生成の間隔。デフォルトはゼロです。これは、注文ログの各新しい項目で書籍の生成を注文することを意味します。
戻り値: ティック取引.
public static Level1ChangeMessage ToLevel1(CandleMessage message)
result = Extensions.ToLevel1(message)
CandleMessageをLevel1ChangeMessage値に変換します。
- message
- CandleMessage インスタンス。
戻り値: Level1ChangeMessage インスタンス。
public static Message ToMessage(ConnectionStates state)
result = Extensions.ToMessage(state)
電子メール:ConnectionStates@ConnectionStatesを変換する
- state
- 担当: 佐藤 浩一
戻り値: メッセージ値。
public static MessageTypes ToMessageType(Type type)
result = Extensions.ToMessageType(type)
変換タイプを@MessageTypes@に変えます。
- type
- 型の値。
戻り値: 担当: 佐藤 浩一
public static Type ToMessageType(MessageTypes type)
result = Extensions.ToMessageType(type)
MessageTypesをタイプ値に変換します。
- type
- 担当: 佐藤 浩一
戻り値: 型の値。
public static MessageTypes ToMessageType(string str)
result = Extensions.ToMessageType(str)
文字列を@MessageTypesに変換します。
- str
- ストリング
戻り値: 担当: 佐藤 宏
public static MessageTypes ToMessageType2(DataType type)
result = Extensions.ToMessageType2(type)
Convert DataType to MessageTypes value.
- type
- 担当: 佐藤 浩一
戻り値: メッセージタイプ。
public static string ToMicexCurrencyName(CurrencyTypes type)
result = Extensions.ToMicexCurrencyName(type)
通貨タイプをMICEX形式で名に変換します。
- type
- 通貨タイプ。
戻り値: MICEX形式の通貨名。
public static SecurityId ToNullableSecurityId(string id, SecurityIdGenerator generator)
result = Extensions.ToNullableSecurityId(id, generator)
文字列を@SecurityId@値に変換します。
- id
- 文字列の値。
- generator
- 機器識別子ジェネレータ SecurityId. することができます。.
戻り値: 担当: 佐藤 浩一
public static IEnumerable<QuoteChangeMessage> ToOrderBooks(IEnumerable<Level1ChangeMessage> level1)
result = Extensions.ToOrderBooks(level1)
レベル1データを注文する書籍に変換します。
- level1
- Level1 データ。
戻り値: 市場深さ。
public static IAsyncEnumerable<QuoteChangeMessage> ToOrderBooks(IAsyncEnumerable<Level1ChangeMessage> level1)
result = Extensions.ToOrderBooks(level1)
レベル1データを注文する書籍に変換します。
- level1
- Level1 データ。
戻り値: 市場深さ。
public static IAsyncEnumerable<QuoteChangeMessage> ToOrderBooks(IAsyncEnumerable<ExecutionMessage> items, IOrderLogMarketDepthBuilder builder, TimeSpan interval, int maxDepth)
result = Extensions.ToOrderBooks(items, builder, interval, maxDepth)
注文ログから市場深さをビルドします。
- items
- ログラインを注文します。
- builder
- ログをマーケットデプスビルダーに注文する。
- interval
- 注文書生成の間隔。デフォルトはゼロです。これは、注文ログの各新しい項目で書籍の生成を注文することを意味します。
- maxDepth
- 注文書の最大の深さ。デフォルトはMaxValueで、無限の深さを意味します。
戻り値: 市場深さ。
public static IEnumerable<QuoteChangeMessage> ToOrderBooks(IEnumerable<ExecutionMessage> items, IOrderLogMarketDepthBuilder builder, TimeSpan interval, int maxDepth)
result = Extensions.ToOrderBooks(items, builder, interval, maxDepth)
注文ログから市場深さをビルドします。
- items
- ログラインを注文します。
- builder
- ログをマーケットデプスビルダーに注文する。
- interval
- 注文書生成の間隔。デフォルトはゼロです。これは、注文ログの各新しい項目で書籍の生成を注文することを意味します。
- maxDepth
- 注文書の最大の深さ。デフォルトはMaxValueで、無限の深さを意味します。
戻り値: 市場深さ。
public static ExecutionMessage ToOrderSnapshot(IEnumerable<ExecutionMessage> diffs, long transactionId, ILogReceiver logs)
result = Extensions.ToOrderSnapshot(diffs, transactionId, logs)
注文の変更を最終スナップショットに変換します。
- diffs
- 変更点
- transactionId
- 取引ID。
- logs
- ログ
戻り値: スナップショット。
public static string ToReadableString(DataType dt)
result = Extensions.ToReadableString(dt)
DataTypeを変換して読みやすい文字列に変換します。
- dt
- DataType インスタンス。
戻り値: 読みやすい文字列。
public static OrderRegisterMessage ToReg(ExecutionMessage execMsg)
result = Extensions.ToReg(execMsg)
代表取締役社長 佐藤 浩一
- execMsg
- メッセージには、実行に関する情報が含まれています。
戻り値: 注文登録情報を含むメッセージ。
public static SecurityId ToSecurityId(string id, SecurityIdGenerator generator)
result = Extensions.ToSecurityId(id, generator)
文字列を@SecurityId@値に変換します。
- id
- 文字列の値。
- generator
- 機器識別子ジェネレータ SecurityId. することができます。.
戻り値: 担当: 佐藤 浩一
public static string ToStringId(SecurityId securityId, SecurityIdGenerator generator, bool nullIfEmpty)
result = Extensions.ToStringId(securityId, generator, nullIfEmpty)
Convert SecurityId to SecurityId value.
- securityId
- 担当: 佐藤 浩一
- generator
- 機器識別子ジェネレータ SecurityId. することができます。.
- nullIfEmpty
- SecurityId@ が空の場合、返します。
戻り値: 担当: 佐藤 浩一
public static ExecutionMessage ToTick(ExecutionMessage item)
result = Extensions.ToTick(item)
注文ログから取引をティックするには.
- item
- ログ項目を注文する。
戻り値: ティックトレード.
public static ExecutionMessage ToTick(Level1ChangeMessage level1)
result = Extensions.ToTick(level1)
レベル1データをティックデータに変換します。
- level1
- Level1 データ。
戻り値: ティックデータ。
public static IAsyncEnumerable<ExecutionMessage> ToTicks(IAsyncEnumerable<Level1ChangeMessage> level1)
result = Extensions.ToTicks(level1)
レベル1データをティックデータに変換します。
- level1
- Level1 データ。
戻り値: ティックデータ。
public static IAsyncEnumerable<ExecutionMessage> ToTicks(IAsyncEnumerable<ExecutionMessage> items)
result = Extensions.ToTicks(items)
注文ログからティック取引を作成する。
- items
- ログラインを注文します。
戻り値: ティック取引.
public static IEnumerable<ExecutionMessage> ToTicks(IEnumerable<ExecutionMessage> items)
result = Extensions.ToTicks(items)
注文ログからティック取引を作成する。
- items
- ログラインを注文します。
戻り値: ティック取引.
public static IEnumerable<ExecutionMessage> ToTicks(IEnumerable<Level1ChangeMessage> level1)
result = Extensions.ToTicks(level1)
レベル1データをティックデータに変換します。
- level1
- Level1 データ。
戻り値: ティックデータ。
public static Type ToType(PositionChangeTypes type)
result = Extensions.ToType(type)
PositionChangeTypesをタイプ値に変換します。
- type
- 担当: 佐藤 浩一
戻り値: 型の値。
public static Type ToType(Level1Fields field)
result = Extensions.ToType(field)
Level1Fields を Type 値に変換します。
- field
- Level1Fields 値。
戻り値: 型の値。
public static QuoteChangeMessage Truncate(IOrderBookMessage depth, int maxDepth)
result = Extensions.Truncate(depth, maxDepth)
指定した注文書を最大深度値でトランクします。
- depth
- 注文書。
- maxDepth
- 注文書の深さは最大。
戻り値: トゥルーンス注文書。
public static TMessage TryAdd<TMessage, TChange>(TMessage message, TChange type, int? value, bool isZeroAcceptable)
result = Extensions.TryAdd(message, type, value, isZeroAcceptable)
値が0と0以外の場合、コレクションに変更を加えるため。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
- isZeroAcceptable
- ゼロ値が許容値です。
戻り値: 変更メッセージ
public static TMessage TryAdd<TMessage, TChange>(TMessage message, TChange type, string value)
result = Extensions.TryAdd(message, type, value)
値が他の場合、コレクションに変更を加えるため。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
戻り値: 変更メッセージ
public static TMessage TryAdd<TMessage, TChange>(TMessage message, TChange type, int value, bool isZeroAcceptable)
result = Extensions.TryAdd(message, type, value, isZeroAcceptable)
値が0以外の場合、コレクションに変更を加えるため。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
- isZeroAcceptable
- ゼロ値が許容値です。
戻り値: 変更メッセージ
public static TMessage TryAdd<TMessage, TChange>(TMessage message, TChange type, decimal? value, bool isZeroAcceptable)
result = Extensions.TryAdd(message, type, value, isZeroAcceptable)
値が0と0以外の場合、コレクションに変更を加えるため。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
- isZeroAcceptable
- ゼロ値が許容値です。
戻り値: 変更メッセージ
public static TMessage TryAdd<TMessage, TChange>(TMessage message, TChange type, decimal value, bool isZeroAcceptable)
result = Extensions.TryAdd(message, type, value, isZeroAcceptable)
値が0以外の場合、コレクションに変更を加えるため。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
- isZeroAcceptable
- ゼロ値が許容値です。
戻り値: 変更メッセージ
public static TMessage TryAdd<TMessage, TChange>(TMessage message, TChange type, bool? value)
result = Extensions.TryAdd(message, type, value)
値が他の場合、コレクションに変更を加えるため。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
戻り値: 変更メッセージ
public static TMessage TryAdd<TMessage, TChange>(TMessage message, TChange type, DateTime? value)
result = Extensions.TryAdd(message, type, value)
値が他の場合、コレクションに変更を加えるため。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
戻り値: 変更メッセージ
public static TMessage TryAdd<TMessage, TChange>(TMessage message, TChange type, PortfolioStates? value)
result = Extensions.TryAdd(message, type, value)
値が他の場合、コレクションに変更を加えるため。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
戻り値: 変更メッセージ
public static TMessage TryAdd<TMessage, TChange>(TMessage message, TChange type, CurrencyTypes? value)
result = Extensions.TryAdd(message, type, value)
値が他の場合、コレクションに変更を加えるため。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
戻り値: 変更メッセージ
public static TMessage TryAdd<TMessage, TChange>(TMessage message, TChange type, SecurityStates? value)
result = Extensions.TryAdd(message, type, value)
値が他の場合、コレクションに変更を加えるため。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
戻り値: 変更メッセージ
public static TMessage TryAdd<TMessage, TChange>(TMessage message, TChange type, Sides? value)
result = Extensions.TryAdd(message, type, value)
値が他の場合、コレクションに変更を加えるため。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
戻り値: 変更メッセージ
public static TMessage TryAdd<TMessage, TChange>(TMessage message, TChange type, long? value, bool isZeroAcceptable)
result = Extensions.TryAdd(message, type, value, isZeroAcceptable)
値が0と0以外の場合、コレクションに変更を加えるため。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
- isZeroAcceptable
- ゼロ値が許容値です。
戻り値: 変更メッセージ
public static TMessage TryAdd<TMessage, TChange>(TMessage message, TChange type, long value, bool isZeroAcceptable)
result = Extensions.TryAdd(message, type, value, isZeroAcceptable)
値が0以外の場合、コレクションに変更を加えるため。
- message
- 変更メッセージ
- type
- 変更タイプ。
- value
- 値を変更します。
- isZeroAcceptable
- ゼロ値が許容値です。
戻り値: 変更メッセージ
public static SecurityMessage TryFillUnderlyingId(SecurityMessage secMsg, string underlyingCode)
result = Extensions.TryFillUnderlyingId(secMsg, underlyingCode)
Fill UnderlyingSecurityId property.
- secMsg
- 担当: 佐藤 宏
- underlyingCode
- 資産IDの把握
戻り値: 担当: 佐藤 宏
public static string TryGet(IDictionary<string, string> parameters, string name, string defaultValue)
result = Extensions.TryGet(parameters, name, defaultValue)
- parameters
- name
- defaultValue
public static decimal? TryGetDecimal<TMessage, TChange>(TMessage message, TChange type)
result = Extensions.TryGetDecimal(message, type)
変更をメッセージから受けましょう。
- message
- 変更メッセージ
- type
- 変更タイプ。
戻り値: 値を変更します。
public static Uri TryGetIconUrl(Type type)
result = Extensions.TryGetIconUrl(type)
- type
戻り値: url をアイコン化します。
public static SecurityId? TryGetSecurityId(Message message)
result = Extensions.TryGetSecurityId(message)
指定したメッセージから財務機器IDを取得してください。
- message
- ご挨拶
戻り値: 金融商品ID、またはメッセージが提供しない場合。
public static bool TryGetServerTime(Message message, DateTime serverTime)
result = Extensions.TryGetServerTime(message, serverTime)
メッセージをサーバーにタイムタイムタイムをつけよう。
- message
- ご挨拶
- serverTime
- サーバー時間。 値が の場合、メッセージにはサーバー時間が含まれません。
戻り値: 動作結果。
public static Uri TryGetVectorIcon(Type type)
result = Extensions.TryGetVectorIcon(type)
アイコンパスをゲットしよう。
- type
- コンポーネントタイプ(VectorIconAttribute@)
戻り値: url をアイコン化します。
public static object TryGet<TMessage, TChange>(TMessage message, TChange type)
result = Extensions.TryGet(message, type)
変更をメッセージから受けましょう。
- message
- 変更メッセージ
- type
- 変更タイプ。
戻り値: 値を変更します。
public static void TryInitLocalTime(Message message, ILogSource source)
Extensions.TryInitLocalTime(message, source)
弊社にてLocalTimeCurrentTime@を初期化していただきます。
- message
- ご挨拶
- source
- ソース。
public static IEnumerable<T> TryLimitByCount<T>(IEnumerable<T> set, SecurityLookupMessage msg)
result = Extensions.TryLimitByCount(set, msg)
- set
- msg
public static TAdapter TryRemoveWrapper<TAdapter>(IMessageAdapter adapter)
result = Extensions.TryRemoveWrapper(adapter)
指定されたタイプでアダプターを削除します。
- adapter
- アダプター。
戻り値: アダプターまたは。
public static TMessage UndoBack<TMessage>(TMessage message)
result = Extensions.UndoBack(message)
MessageBackModes にて動作を中止
- message
- ご挨拶
戻り値: ご挨拶
public static QuoteChangeMessage UnGroup(IOrderBookMessage depth)
result = Extensions.UnGroup(depth)
注文書をグループ化するには、メソッドのDecimalを使ってグループ化します。
- depth
- 団体注文書。
戻り値: 団体別注文書。
public static bool UseChannels(IMessageAdapter adapter)
result = Extensions.UseChannels(adapter)
メッセージアダプタがチャンネルを使用するかどうかを確認するため。
- adapter
- 担当: 佐藤 宏
戻り値: 結果をチェックする。
public static MarketDataMessage ValidateBounds(MarketDataMessage message)
result = Extensions.ValidateBounds(message)
値から値まで検証します。
- message
- ご挨拶
戻り値: ご挨拶
public static bool ValidateCandleArg(Type candleMessageType, object value)
result = Extensions.ValidateCandleArg(candleMessageType, value)
ろうそくのラグを検証します。
- candleMessageType
- キャンドルメッセージタイプ。
- value
- キャンドルアーグ。
戻り値: 結果をチェックする。
public static bool ValidateChannelState(ChannelStates currState, ChannelStates newState)
result = Extensions.ValidateChannelState(currState, newState)
状態の変更を検証します。
- currState
- 現在の状態。
- newState
- 新規状態。
public static bool Verify(IOrderBookMessage book)
result = Extensions.Verify(book)
注文書が正しい状態にあるかどうかを判断するため。
- book
- 注文書。
戻り値: 、注文書に正しいデータが含まれている場合、そうでなければ。
public static bool VerifyOrderState(OrderStates? currState, OrderStates newState, long transactionId, ILogReceiver logs, bool throwOnInvalid)
result = Extensions.VerifyOrderState(currState, newState, transactionId, logs, throwOnInvalid)
変更の可能性OrderStatesを@にチェックしてください。
- currState
- 現在の順序の状態。
- newState
- 新規状態。
- transactionId
- トランザクションID。
- logs
- ログ
- throwOnInvalid
- 無効な移行に例外を投げます。
戻り値: 結果をチェックする。
public static DataType Volume(decimal arg)
result = Extensions.Volume(arg)
データをVolumeCandleMessage@に作成します。
- arg
- キャンドルアーグ。
戻り値: データ型情報。
フィールド
public static readonly string AllSecurityId
value = Extensions.AllSecurityId
「全ての金融商品」ID。
public const string AnonymousPortfolioName
value = Extensions.AnonymousPortfolioName
匿名アカウント。
public static readonly IEnumerable<int> AnyDepths
value = Extensions.AnyDepths
特別なセットはSupportedOrderBookDepths@のオプションのためのあらゆる深さを意味します。
public static readonly IFileSystem DefaultFileSystem
value = Extensions.DefaultFileSystem
デフォルトIFileSystem@
public static readonly SecurityLookupMessage LookupAllCriteriaMessage
value = Extensions.LookupAllCriteriaMessage
金融商品取引条件の定義を全て調べる。
public const string NewsStockSharpSource
value = Extensions.NewsStockSharpSource
代表取締役社長 佐藤 浩一
public const string SimulatorPortfolioName
value = Extensions.SimulatorPortfolioName
シミュレータ。
public static readonly DateTime Today
value = Extensions.Today
TillDateの定数値で、今日(=セッション) の値をいいます。