GetSecuritiesList

Method

POST

http://fc-data.ssi.com.vn/api/Market/GetSecuritiesList

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_securities_list(market, page_index, page_size, option, ct_config): md_rq = md_model_pb2.SecuritiesListRequest() md_rq.Market = market.upper() # md_rq.Market = market # 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": [
    {
      "Market": "HOSE",
      "Symbol": "SSI",
      "StockName": "StockName VN",
      "StockEnName": "StockName En"
    },
    {
      "Market": "HOSE",
      "Symbol": "SSC",
      "StockName": "StockName VN",
      "StockEnName": "StockName En"
    }
  ],
  "message": "Success",
  "status": "Success",
  "totalRecord": 2
}

Request Information

SecuritiesListRequest

Property Name Data Type Sample value Required Description
Market String SAMPLE YES HOSE,HNX,UPCOM,DER, or ALL
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

SecuritiesListResponse

Property Name Data Type Property Name Data Type Sample value Description
Data SecuritiesListResponseModel [ ] Market String
Data SecuritiesListResponseModel [ ] Symbol String
Data SecuritiesListResponseModel [ ] StockName String
Data SecuritiesListResponseModel [ ] StockEnName String
Data SecuritiesListResponseModel [ ] Market String
Data SecuritiesListResponseModel [ ] Symbol String
Data SecuritiesListResponseModel [ ] StockName String
Data SecuritiesListResponseModel [ ] StockEnName String

Syntax protocol message

{

Syntax Request Protocol 2 Message

syntax = "proto2";
package SSI.FastConnect.DataContracts.Market.Request;

message SecuritiesListRequest {
   optional string Market = 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 SecuritiesListRequest {
   string Market = 1;
   int32 PageIndex = 2;
   int32 PageSize = 3;
}
{

Syntax Response Protocol 2 Message

syntax = "proto2";

message ResponseBase_SecuritiesListResponseModel {
   repeated SecuritiesListResponseModel data = 1;
   optional string message = 2;
   optional string status = 3;
   optional int32 totalRecord = 4 [default = 0];
   oneof subtype {
      SecuritiesListResponse SecuritiesListResponse = 105;
   }
}
message ResponseClient_SecuritiesListResponse {
   optional bytes Data = 1;
   optional string Message = 2;
   optional int32 StatusCode = 3 [default = 0];
}
message SecuritiesListResponse {
}
message SecuritiesListResponseModel {
   optional string Market = 1;
   optional string Symbol = 2;
   optional string StockName = 3;
   optional string StockEnName = 4;
}

Syntax Response Protocol 3 Message

syntax = "proto3";

message ResponseBase_SecuritiesListResponseModel {
   repeated SecuritiesListResponseModel data = 1;
   string message = 2;
   string status = 3;
   int32 totalRecord = 4;
   oneof subtype {
      SecuritiesListResponse SecuritiesListResponse = 105;
   }
}
message ResponseClient_SecuritiesListResponse {
   bytes Data = 1;
   string Message = 2;
   int32 StatusCode = 3;
}
message SecuritiesListResponse {
}
message SecuritiesListResponseModel {
   string Market = 1;
   string Symbol = 2;
   string StockName = 3;
   string StockEnName = 4;
}
https://developers.google.com/protocol-buffers/docs/csharptutorial