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 |
|---|---|---|
| symbol | string | Trading symbol Required |
| side | string | buy, sell, or cover Required |
| position_size | number | Order volume Required |
| price | string | Order price (use TradingView variables) |
| price_type | string | Limit, ATO, ATC, MP-MTL, MP-MKT |
| comment | string | Optional. Order comment sent to broker |