-
Notifications
You must be signed in to change notification settings - Fork 2
api symbolinfo
ntwerd edited this page Apr 12, 2023
·
3 revisions
Returns json data about symbol.
http://122.8.148.106/robot/api/v1/symbol/<brokerCode>/<accountNo>?symbol=<symbol>
GET
Header : X-API-KEY
-
Code: 200
Content:
{
"internalId":"833",
"parentInternalId":"PTT_SYMB",
"action":"1",
"timestamp":"2021-02-05T05:04:11.363",
"symbol":"PTT",
"currency":"THB",
"exchangeType":"STOCK",
"orderBookId":"2099",
"marketId":"SET",
"marketListId":"STOCK",
"segmentId":"COMMON_STOCK",
"subscriptionGroupId":"258",
"closingPrice":38.25,
"lastTradePrice":38.25,
"roundLot":100,
"validFromDate":"2011-01-01",
"validToDate":"None",
"lastTradingDate":"None",
"securityType":"S",
"upperPriceLimit":49.5,
"lowerPriceLimit":27.0,
"closingDate":"2021-02-04",
"lastTradingTime":"None",
"expirationDate":"None",
"openInterest":"None",
"settlementPrice":"None",
"settlementDate":"None",
"contractSize":"None",
"beneficialSigns":"None",
"deleted":false,
"combination":false,
"stabilizationFlag":false,
"orderbookState":"N/A",
"allowShortSell":true,
"allowShortSellOnNvdr":true,
"allowNvdr":false,
"allowTtf":false,
"circuitBreakerOrderBook":"None",
"newListStockFlag":false,
"referencePrice":"None",
"turnoverSign":"None",
"turnoverEffectiveDate":"None",
"turnoverEndDate":"None"
}
-
Code: 200
Content:
{
"status": "F",
"message": "Symbol not found",
"data": {}
}
OR
-
Code: 200
Content:
{
"status": "F",
"message": "Invalid api key",
"data": {}
}