API Specs

API List

APIMethodPath

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

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

FieldTypeRequired?Description

consumerID

string

Yes

ConsumerID

consumerSecret

string

Yes

ConsumerSecret

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

FieldTypeRequired?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

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

FieldTypeRequired?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

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

FieldTypeRequired?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:

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

FieldTypeRequired?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

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

FieldTypeRequired?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

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

FieldTypeRequired?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

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

FieldTypeRequired?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

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

FieldTypeRequired?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

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