IncSilence

WebhookJsonMsg

IncSilence アップデート済   
Library "WebhookJsonMsg"
This webhook json message library provides convenient functions for building JSON messages
Used to manage automatic transaction orders and positions

method buildWebhookJson(msg)
  Builds the final JSON payload from a WebhookMessage type.
  Namespace types: WebhookMessage
  Parameters:
    msg (WebhookMessage)
  Returns: <string> A JSON Payload.

Dict
  Define some constant values
  Fields:
    OPEN_LONG (series string)
    OPEN_SHORT (series string)
    CLOSE_LONG (series string)
    CLOSE_SHORT (series string)
    LIMIT (series string)
    MARKET (series string)
    U_MARGIN (series string)
    C_MARGIN (series string)
    SPOT (series string)

WebhookMessage
  Webhook message structure.
  Fields:
    strategyId (series string)
    signalNo (series string)
    symbol (series string)
    symbolType (series string)
    orderSide (series string)
    price (series string)
    orderType (series string)
    takeProfitPrice (series string)
    stopLossPrice (series string)
    timestamp (series string)
    accessKey (series string)
リリースノート:
v2
fix: json without comma symbol
リリースノート:
v3

Updated:
WebhookMessage
  Webhook message structure.
  Fields:
    strategyId (series string)
    signalNo (series string)
    relatedSignalNo (series string)
    symbol (series string)
    symbolType (series string)
    orderSide (series string)
    price (series string)
    orderType (series string)
    takeProfitPrice (series string)
    stopLossPrice (series string)
    timestamp (series string)
    accessKey (series string)
    positionRatio (series string)
リリースノート:
v4
- modify timestamp value, replace fixed value with custom value
Pineライブラリ

TradingViewの精神に則り、作者はPineコードをオープンソースライブラリとして公開し、コミュニティの他のPineプログラマーが再利用できるようにしました。作者に敬意を表します!このライブラリを個人的に、または他のオープンソースの投稿で使用することができますが、、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

このライブラリを使用したいですか?

以下の行をコピーして、スクリプト内に貼り付けてください。