IncSilence

WebhookJsonMsg

IncSilence Atualizado   
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)
Notas de Lançamento:
v2
fix: json without comma symbol
Notas de Lançamento:
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)
Notas de Lançamento:
v4
- modify timestamp value, replace fixed value with custom value
Biblioteca do Pine

No verdadeiro espírito TradingView, o autor publicou este código de Pine como uma biblioteca de código aberto para que outros programadores de Pine de nossa comunidade possam reutilizá-lo. Um brinde ao autor! Você pode usar esta biblioteca em particular ou em outras publicações de código aberto, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Gostaria de usar essa biblioteca?

Copie a seguinte linha e cole-a em seu script.