GetIndexList
Method
POST
http://fc-data.ssi.com.vn/api/Market/GetIndexList
Description
Sample code
Not supported yet
Detail
[Javascript] const rxjs = require('rxjs'); const express = require('express'); const config = require('./config.js'); const marketStreaming = require('./Streamings/marketStreaming'); const app = express(); const port = 3051; Not supported yet[End]
Detail
[Python] from .fc_client import TradingAPIClient from .fc_client import MarketDataClient from .models import tapi_model_pb2 from .models import md_model_pb2 from .config import fc_config # from fc_client import TradingAPIClient # from fc_client import MarketDataClient # from models import tapi_model_pb2 # from models import md_model_pb2 # from config import fc_config import random def md_get_index_list(exchange, page_index, page_size, option, ct_config): md_rq = md_model_pb2.IndexListRequest() md_rq.Exchange = exchange.upper() # md_rq.PageIndex = page_index # md_rq.PageSize = page_size ifpage_index == None: md_rq.PageIndex = 1 else: md_rq.PageIndex = page_index ifpage_size == None: md_rq.PageSize = 10 else: md_rq.PageSize = page_size[End]
Not supported yet
Sample Response
{ "data": [ { "IndexCode": "SAMPLE", "IndexName": "SAMPLE", "Exchange": "SAMPLE" } ], "message": "Undefine", "status": "Undefine", "totalRecord": 0 }
Request Information
IndexListRequest
Property Name | Data Type | Sample value | Required | Description |
---|---|---|---|---|
Exchange | String | HNX | YES | Input Exchange code to get the list of indexes for that Exchange,HOSE: HCM Exchange, HNX: Hanoi Exchange.If not specify then returns all exchanges |
PageIndex | Int32 | 1 | NO | Number of page, start from 1, default 1 |
PageSize | Int32 | 10 | NO | Size of a page, 10; 20; 50; 100; 1000 Default 10 |
Response Information
IndexListResponse
Property Name | Data Type | Property Name | Data Type | Sample value | Description |
---|---|---|---|---|---|
Data | IndexListResponseModel [ ] | IndexCode | String | ||
Data | IndexListResponseModel [ ] | IndexName | String | ||
Data | IndexListResponseModel [ ] | Exchange | String |
Syntax protocol message
{
Syntax Request Protocol 2 Message
syntax = "proto2"; package SSI.FastConnect.DataContracts.Market.Request; message IndexListRequest { optional string Exchange = 1; optional int32 PageIndex = 2 [default = 0]; optional int32 PageSize = 3 [default = 0]; }
Syntax Request Protocol 3 Message
syntax = "proto3"; package SSI.FastConnect.DataContracts.Market.Request; message IndexListRequest { string Exchange = 1; int32 PageIndex = 2; int32 PageSize = 3; }
{
Syntax Response Protocol 2 Message
syntax = "proto2"; message IndexListResponse { } message IndexListResponseModel { optional string IndexCode = 1; optional string IndexName = 2; optional string Exchange = 3; } message ResponseBase_IndexListResponseModel { repeated IndexListResponseModel data = 1; optional string message = 2; optional string status = 3; optional int32 totalRecord = 4 [default = 0]; oneof subtype { IndexListResponse IndexListResponse = 103; } } message ResponseClient_IndexListResponse { optional bytes Data = 1; optional string Message = 2; optional int32 StatusCode = 3 [default = 0]; }
Syntax Response Protocol 3 Message
syntax = "proto3"; message IndexListResponse { } message IndexListResponseModel { string IndexCode = 1; string IndexName = 2; string Exchange = 3; } message ResponseBase_IndexListResponseModel { repeated IndexListResponseModel data = 1; string message = 2; string status = 3; int32 totalRecord = 4; oneof subtype { IndexListResponse IndexListResponse = 103; } } message ResponseClient_IndexListResponse { bytes Data = 1; string Message = 2; int32 StatusCode = 3; }
https://developers.google.com/protocol-buffers/docs/csharptutorial