IncSilence

WebhookJsonMsg

IncSilence Cập nhật   
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)
Phát hành các Ghi chú:
v2
fix: json without comma symbol
Phát hành các Ghi chú:
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)
Phát hành các Ghi chú:
v4
- modify timestamp value, replace fixed value with custom value
Thư viện Pine

Với tinh thần TradingView thực sự, tác giả đã xuất bản mã Pine này như một thư viện mã nguồn mở để các lập trình viên Pine khác từ cộng đồng của chúng tôi có thể sử dụng lại nó. Chúc mừng tác giả! Bạn có thể sử dụng thư viện này một cách riêng tư hoặc trong các ấn phẩm mã nguồn mở khác, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy chung.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng thư viện này?

Sao chép văn bản vào khay nhớ tạm và dán nó vào tập lệnh của bạn.