Z
Zignal Hub
Sign In Get Started
Stock & Derivatives

SETTrade Open API

Integrate Thai stock and derivatives trading with Zignal Hub using the SETTrade Open API.

1 Prerequisites

  • Application ID
  • Application Secret
  • Broker ID (e.g., 098 for Sandbox)

2 Webhook URL

https://zignalhub.com/api/settrade/webhook/api-key/{KEY}?secret={SECRET}

Payload Configuration (JSON)

settrade_payload.json
{
  "symbol": "S50H25",
  "side": "buy",
  "position_size": 1,
  "price": "",
  "price_type": "Limit",
  "comment": "My strategy"
}

Parameters

Field Type Description
symbolstringTrading symbol Required
sidestringbuy, sell, or cover Required
position_sizenumberOrder volume Required
pricestringOrder price (use TradingView variables)
price_typestringLimit, ATO, ATC, MP-MTL, MP-MKT
commentstringOptional. Order comment sent to broker