API Specs
API List
API | Method | Path |
---|---|---|
AccessToken | POST | Market/AccessToken |
Securities | GET | Market/Securities |
SecuritiesDetails | GET | Market/SecuritiesDetails |
IndexComponents | GET | Market/IndexComponents |
IndexList | GET | Market/IndexList |
DailyOhlc | GET | Market/DailyOhlc |
IntradayOhlc | GET | Market/IntradayOhlc |
DailyIndex | GET | Market/DailyIndex |
DailyStockPrice | GET | Market/DailyStockPrice |
POST AccessToken
To get access token used to run APIs or connect streaming of FastConnect Data.
Details
Field | Type | Required? | Description |
---|---|---|---|
consumerID | string | Yes | ConsumerID |
consumerSecret | string | Yes | ConsumerSecret |
Sample
GET Securities
To get securities list by exchange.
Details
Field | Type | Required? | Description |
---|---|---|---|
market | string | No | HOSE | HNX | UPCOM | DER If not set, returns securities of all markets |
pageIndex | integer | Yes | From 1 to 10. Default value is 1. |
pageSize | integer | Yes | 10; 20; 50; 100; 1000 Default value is 10. |
Sample
GET SecuritiesDetails
To get securities details.
Details
Field | Type | Required? | Description |
---|---|---|---|
market | string | No | HOSE | HNX | UPCOM | DER If not set, returns securities of all markets |
symbol | string | No | If not set, returns all securities of defined markets |
pageIndex | integer | Yes | From 1 to 10. Default value is 1 |
pageSize | integer | Yes | 10; 20; 50; 100; 1000 Default value is 10 |
Sample
GET IndexComponents
To get securities list of an index.
Details
Field | Type | Required? | Description |
---|---|---|---|
Indexcode | string | Yes | Input one index code to get securities list |
pageIndex | integer | Yes | From 1 to 10. Default value is 1 |
pageSize | integer | Yes | 10; 20; 50; 100; 1000 Default value is 10 |
Sample:
GET IndexList
To get index list.
Details
Field | Type | Required? | Description |
---|---|---|---|
exchange | string | Yes | HOSE | HNX |
pageIndex | integer | Yes | From 1 to 10. Default 1 |
pageSize | integer | Yes | 10; 20; 50; 100; 1000. Default 10 |
Sample
GET DailyOhlc
To get daily open, high, low, close, volume, value.
Details
Field | Type | Required? | Description |
---|---|---|---|
symbol | string | No | Securities/Index code |
fromDate | string | Yes | Default is today if not set. In dd/mm/yyyy format |
toDate | string | Yes | Default is today if not set. In dd/mm/yyyy format |
pageIndex | integer | Yes | From 1 to 10 Default 1 |
pageSize | integer | Yes | 10; 20; 50; 100; 1000 Default 10 |
ascending | boolean | No | true/ false |
Sample
GET IntradayOhlc
To get realtime open, high, low, close, volume of securities.
Details
Field | Type | Required? | Description |
---|---|---|---|
symbol | string | No | Securities symbols, indexes |
fromDate | string | Yes | If not set, default to today Format dd/mm/yyyy |
toDate | string | Yes | If not set, default to today Format dd/mm/yyyy |
pageIndex | integer | Yes | From 1 to 10 Default 1 |
pageSize | integer | Yes | 10; 20; 50; 100; 1000 Default 10 |
ascending | boolean | No | true/ false |
resollution | integer | No | Default 1 minute |
Sample
GET DailyIndex
To get daily trading data of Index
Details
Field | Type | Required? | Description |
---|---|---|---|
indexId | string | Yes | IndexID. The list of indexes can be retrieved by api getIndexList, or refer to this page. |
fromDate | string | Yes | Default is today if not set. In dd/mm/yyyy format |
toDate | string | Yes | Default is today if not set. In dd/mm/yyyy format |
pageIndex | integer | Yes | From 1 to 10 Default 1 |
pageSize | integer | Yes | 10; 20; 50; 100; 1000 Default 10 |
ascending | boolean | No | true/ false |
Sample
GET DailyStockPrice
To get daily price of securities.
Details
Field | Type | Required? | Description |
---|---|---|---|
Symbol | string | No |
|
fromDate | string | Yes | Default is today if not set. In dd/mm/yyyy format |
toDate | string | Yes | Default is today if not set. In dd/mm/yyyy format |
pageIndex | integer | Yes | From 1 to 10 Default 1 |
pageSize | integer | Yes | 10; 20; 50; 100; 1000 Default 10 |
market | string | No | HOSE|HNX|UPCOM|DER|BOND |
Sample
Last updated