คำอธิบาย ⋅ 8 พฤษภา 2023 เวลา 3 นาฬิกา 21 นาที Library "WebhookJsonMsg" This webhook json message library provides convenient functions for building JSON messages Used to manage automatic transaction orders and positionsmethod 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)
เอกสารเผยแพร่ ⋅ 8 พฤษภา 2023 เวลา 4 นาฬิกา 12 นาที v2 fix: json without comma symbol
เอกสารเผยแพร่ ⋅ 6 มิถุนา 2023 เวลา 12 นาฬิกา 47 นาที 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)
เอกสารเผยแพร่ ⋅ 17 มิถุนา 2023 เวลา 20 นาฬิกา 11 นาที v4 - modify timestamp value, replace fixed value with custom value