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
ไลบรารีไพน์

จิตวิญญาณที่แท้จริงของ TradingView ผู้เขียนได้ตีพิมพ์รหัส Pine นี้เป็นไลบรารีโอเพนซอร์ซเพื่อให้โปรแกรมเมอร์คนอื่น ๆ จากชุมชนของเราสามารถนำไปใช้ซ้ำได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ไลบรารีนี้เป็นการส่วนตัวหรือในสิ่งพิมพ์โอเพนซอร์สอื่น ๆ แต่นำรหัสนี้มาใช้ซ้ำในสิ่งพิมพ์จะถูกควบคุมโดย กฎระเบียบการใช้งาน

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการใช้ไลบรารีนี้หรือไม่?

คัดลอกข้อความไปยังคลิปบอร์ดแล้ววางลงในสคริปต์ของคุณ