API List
POST AccessToken
https://fc-data.ssi.com.vn/api/v2/Market/AccessToken
To get access token used to run APIs or connect streaming of FastConnect Data.
Details
Field | Type | Required? | Description |
---|
| | | |
| | | |
Field | Type | Description |
---|
| | |
| | |
| | Token to access API and connect streaming |
Sample
Input:
{
"consumerID": "c058f55761814787882b2c8df1336e25",
"consumerSecret": "144cac45770949519d2dfd20edb5b6ab",
}
Output:
{
"message": "Success",
"status": 200,
"data": {
"accessToken": "eyJhbGciOiJSUzI1NiIsI"
}
}
GET Securities
https://fc-data.ssi.com.vn/api/v2/Market/Securities
To get securities list by exchange.
Details
Field | Type | Required? | Description |
---|
| | | HOSE | HNX | UPCOM | DER If not set, returns securities of all markets |
| | | From 1 to 10. Default value is 1. |
| | | 10; 20; 50; 100; 1000 Default value is 10. |
Sample
Input:
{
pageIndex : "1"
pageSize: "10"
market: "hose"
}
Output:
{
"data": [
{
"Market": "HOSE",
"Symbol": "AAA",
"StockName": "CTCP NHUA&MT XANH AN PHAT",
"StockEnName": "An Phat Bioplastics Joint Stock Company"
},
{
"Market": "HOSE",
"Symbol": "AAM",
"StockName": "CTCP THUY SAN MEKONG",
"StockEnName": "Mekong Fisheries Joint Stock Company"
}
],
"message": "Success",
"status": "Success",
"totalRecord":2
GET SecuritiesDetails
https://fc-data.ssi.com.vn/api/v2/Market/SecuritiesDetails
To get securities details.
Details
Field | Type | Required? | Description |
---|
| | | HOSE | HNX | UPCOM | DER If not set, returns securities of all markets |
| | | If not set, returns all securities of defined markets |
| | | From 1 to 10. Default value is 1 |
| | | 10; 20; 50; 100; 1000 Default value is 10 |
Data | Type | Description |
---|
| | |
| | |
| | |
| | |
| | |
| | Date of report
Format: dd/mm/yyyy |
| | Total number of securities |
| | |
| | |
| | Securities symbol. Used as key in trading activities. |
| | |
| | |
| | Securties Type:
ST: Stock CW: Covered Warrant FU: Futures EF: ETF BO: BOND OF: OEF MF: Mutual Fund |
| | Exchange:
HOSE HNX HNXBOND UPCOM DER |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
Sample
Input:
{
pageIndex : "1"
pageSize: "10"
market: "hose"
symbol: "SSI"
}
Output:
{
"data": [
{
"RType": "y",
"ReportDate": "19/01/2023",
"TotalNoSym": "1",
"RepeatedInfo": [
{
"Isin": null,
"Symbol": "SSI",
"SymbolName": "CTCP CHUNG KHOAN SSI",
"SymbolEngName": "SSI Securities Corporation",
"SecType": "S",
"MarketId": "HOSE",
"Exchange": "HOSE",
"Issuer": null,
"LotSize": "100",
"IssueDate": "",
"MaturityDate": "",
"FirstTradingDate": "",
"LastTradingDate": "",
"ContractMultiplier": "0",
"SettlMethod": "",
"Underlying": null,
"PutOrCall": null,
"ExercisePrice": "0",
"ExerciseStyle": "",
"ExcerciseRatio": "0",
"ListedShare": "1501130137",
"TickPrice1": null,
"TickIncrement1": null,
"TickPrice2": null,
"TickIncrement2": null,
"TickPrice3": null,
"TickIncrement3": null,
"TickPrice4": null,
"TickIncrement4": null
}
]
}
],
"message": "Success",
"status": "Success",
"totalRecord": 1
}
GET IndexComponents
https://fc-data.ssi.com.vn/api/v2/Market/IndexComponents
To get securities list of an index.
Details
Field | Type | Required? | Description |
---|
| | | Input one index code to get securities list |
| | | From 1 to 10. Default value is 1 |
| | | 10; 20; 50; 100; 1000 Default value is 10 |
Field | Type | Description |
---|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | Total number of symbols in the index |
| | |
| | |
| | |
Sample:
Input:
{
pageIndex: "1"
pageSize: "10"
indexCode: "VN30"
}
Output:
{
"data": [
{
"IndexCode": "VN30",
"IndexName": "VN30",
"Exchange": "HOSE",
"TotalSymbolNo": "30",
"IndexComponent": [
{
"Isin": "ACB",
"StockSymbol": "ACB"
},
{
"Isin": "BCM",
"StockSymbol": "BCM"
}
}
]
}
],
"message": "Success",
"status": "Success",
"totalRecord": 1
}
GET IndexList
https://fc-data.ssi.com.vn/api/v2/Market/IndexList
To get index list.
Details
Field | Type | Required? | Description |
---|
| | | |
| | | |
| | | 10; 20; 50; 100; 1000. Default 10 |
Sample
Input:
{
pageIndex: "1"
pageSize: "10"
exchange: "HOSE"
}
Output:
{
"data": [
{
"IndexCode": "VN100",
"IndexName": "VN100",
"Exchange": "HOSE"
},
{
"IndexCode": "VN30",
"IndexName": "VN30",
"Exchange": "HOSE"
}
],
"message": "Success",
"status": "Success",
"totalRecord": 2
GET DailyOhlc
https://fc-data.ssi.com.vn/api/v2/Market/DailyOhlc
To get daily open, high, low, close, volume, value.
Details
Field | Type | Required? | Description |
---|
| | | |
| | | Default is today if not set. In dd/mm/yyyy format |
| | | Default is today if not set. In dd/mm/yyyy format |
| | | |
| | | 10; 20; 50; 100; 1000 Default 10 |
| | | |
Field | Type | Description |
---|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | Total normal matched volume |
| | Total normal matched value |
Sample
Input:
{
pageIndex: "1"
pageSize: "10"
Symbol: "SSI"
Fromdate: 10/08/2023
Todate: 13/08/2023
}
Output:
{
"data": [
{
"Symbol": "SSI",
"Market": "HOSE",
"TradingDate": "10/08/2023",
"Time": null,
"Open": "28600",
"High": "28850",
"Low": "28100",
"Close": "28100",
"Volume": "23382100",
"Value": "663258204999.9850"
},
{
"Symbol": "SSI",
"Market": "HOSE",
"TradingDate": "11/08/2023",
"Time": null,
"Open": "28250",
"High": "28300",
"Low": "27650",
"Close": "28150",
"Volume": "27536000",
"Value": "769411290000.0090"
}
],
"message": "Success",
"status": "Success",
"totalRecord": 2
}
GET IntradayOhlc
https://fc-data.ssi.com.vn/api/v2/Market/IntradayOhlc
To get realtime open, high, low, close, volume of securities.
Details
Field | Type | Required? | Description |
---|
| | | Securities symbols, indexes |
| | | If not set, default to today
Format dd/mm/yyyy |
| | | If not set, default to today
Format dd/mm/yyyy |
| | | |
| | | 10; 20; 50; 100; 1000 Default 10 |
| | | |
| | | |
Sample
Input:
{
pageIndex: "1"
pageSize: "10"
Symbol: "SSI"
Fromdate: 14/08/2023
Todate: 14/08/2023
}
Output:
{
data: [
{
Symbol: "SSI",
Value: "29150",
TradingDate: "14/08/2023",
Time: "14:45:04",
Open: "29150",
High: "29150",
Low: "29150",
Close: "29150",
Volume: "529200"
},
{
Symbol: "SSI",
Value: "29100",
TradingDate: "14/08/2023",
Time: "14:29:59",
Open: "29050",
High: "29150",
Low: "29050",
Close: "29100",
Volume: "166400"
}
],
message: "Success",
status: "Success",
totalRecord: 2
}
GET DailyIndex
https://fc-data.ssi.com.vn/api/v2/Market/DailyIndex
To get daily trading data of Index
Details
Field | Type | Required? | Description |
---|
| | | IndexID. The list of indexes can be retrieved by api getIndexList, or refer to this page. |
| | | Default is today if not set. In dd/mm/yyyy format |
| | | Default is today if not set. In dd/mm/yyyy format |
| | | |
| | | 10; 20; 50; 100; 1000 Default 10 |
| | | |
Field | Type | Description |
---|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | Total trades (both normal and put-through) |
| | |
| | |
| | |
| | |
| | Total number of symbols with increased price |
| | Total number of symbols with unchanged price |
| | Total number of declined symbols |
| | Total number of symbols with ceiling price |
| | Total number of symbols with floor price |
| | Total put-through matched quantity |
| | Total put-through matched value |
| | Total matched quantity (both normal and put-through) |
| | Total matched value (both normal and put-through) |
| | |
| | |
| | |
Sample
Input:
{
pageIndex: "1"
pageSize: "10"
indexID: "HNX30"
Fromdate: 14/08/2023
Todate: 14/08/2023
}
Output:
{
data: [
{
IndexId: "HNX30",
IndexValue: "510.56",
TradingDate: "14/08/2023",
Time: null,
Change: "19.09",
RatioChange: "3.89",
TotalTrade: "0",
TotalMatchVol: "84693600",
TotalMatchVal: "1836008470000",
TypeIndex: null,
IndexName: "HNX30",
Advances: "21",
NoChanges: "4",
Declines: "5",
Ceilings: "2",
Floors: "0",
TotalDealVol: "2504000",
TotalDealVal: "60256000000",
TotalVol: "87197600",
TotalVal: "1896264470000",
TradingSession: "C"
}
],
message: "Success",
status: "Success",
totalRecord: 1
}
GET DailyStockPrice
https://fc-data.ssi.com.vn/api/v2/Market/DailyStockPrice
To get daily price of securities.
Details
Field | Type | Required? | Description |
---|
| | | |
| | | Default is today if not set. In dd/mm/yyyy format |
| | | Default is today if not set. In dd/mm/yyyy format |
| | | |
| | | 10; 20; 50; 100; 1000 Default 10 |
| | | |
Field | Type | Description |
---|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | Total traded vol, including odd lot |
| | Total traded value, including odd lot |
| | |
Input:
{
pageIndex: "1"
pageSize: "10"
symbol: "SSI"
market: "HOSE"
Fromdate: 19/07/2023
Todate: 19/07/2023
}
Output:
{
data: [
{
TradingDate: "19/07/2023",
PriceChange: "-150",
PerPriceChange: "-0.70",
CeilingPrice: "21550",
FloorPrice: "18750",
RefPrice: "20150",
OpenPrice: "20950",
HighestPrice: "20950",
LowestPrice: "20000",
ClosePrice: "20000",
AveragePrice: "20118",
ClosePriceAdjusted: "17392",
TotalMatchVol: "18900",
TotalMatchVal: "380230000",
TotalDealVal: "0",
TotalDealVol: "0",
ForeignBuyVolTotal: "0",
ForeignCurrentRoom: "0",
ForeignSellVolTotal: "0",
ForeignBuyValTotal: "0",
ForeignSellValTotal: "0",
TotalBuyTrade: "0",
TotalBuyTradeVol: "0",
TotalSellTrade: "0",
TotalSellTradeVol: "0",
NetBuySellVol: "0",
NetBuySellVal: "0",
TotalTradedVol: "18900",
TotalTradedValue: "380230000",
Symbol: "HUB",
Time: null
}
],
message: "Success",
status: "Success",
totalRecord: 1
}
Sample
Last updated