Lấy mã VN30 spot mặc định
Lấy mã VN30 spot mặc định
curl --request GET \
--url https://api-gw.verolabs.co/api/v1/MarketData/GetVN30Spotconst options = {method: 'GET'};
fetch('https://api-gw.verolabs.co/api/v1/MarketData/GetVN30Spot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api-gw.verolabs.co/api/v1/MarketData/GetVN30Spot"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-gw.verolabs.co/api/v1/MarketData/GetVN30Spot"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}using RestSharp;
var options = new RestClientOptions("https://api-gw.verolabs.co/api/v1/MarketData/GetVN30Spot");
var client = new RestClient(options);
var request = new RestRequest("");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);falseCURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_WRITEDATA, stdout);
curl_easy_setopt(hnd, CURLOPT_URL, "https://api-gw.verolabs.co/api/v1/MarketData/GetVN30Spot");
CURLcode ret = curl_easy_perform(hnd);{
"isSuccess": true,
"data": {
"symbol": "<string>",
"companyName": "<string>",
"sectorLvl1": "<string>",
"sectorLvl2": "<string>",
"sectorLvl3": "<string>",
"industryName": "<string>",
"logoId": "<string>",
"news": [
{}
],
"sentiment": {
"bullish": 123,
"bullishPercent": 123,
"bullishTime": 123,
"bearish": 123,
"bearishPercent": 123,
"bearishTime": 123
},
"info": {
"id": "<string>",
"seq": 123,
"time": 123,
"symbol": "<string>",
"boardID": "<string>",
"nomiPrc": 123,
"ceilPrc": 123,
"floorPrc": 123,
"lsPrc": 123,
"lsVol": 123,
"openPrc": 123,
"closePrc": 123,
"highPrc": 123,
"lowPrc": 123,
"vWAP": 123,
"totVol": 123,
"totVal": 123,
"tradingSession": "<string>",
"openInterest": 123
},
"stat": {
"id": "<string>",
"symbol": "<string>",
"type": "<string>",
"lot": 123,
"minQty": 123,
"maxQty": 123,
"prcStep": 123,
"name": "<string>",
"productGroupID": "<string>",
"tickerCode": "<string>",
"symbolName": "<string>",
"underlyingSymbolCode": "<string>",
"expirationDate": "<string>",
"contractSize": 123
},
"depth": {
"seq": 123,
"time": 123,
"symbol": "<string>",
"boardID": "<string>",
"bidPriceDepth": [
{
"prc": 123,
"vol": 123
}
],
"askPriceDepth": [
{
"prc": 123,
"vol": 123
}
]
},
"trend": {
"buyUp": {
"symbol": "<string>",
"way": 123,
"vwapPrice": 123,
"totalValue": 123,
"totalVol": 123,
"tradeCount": 123
},
"sellDown": {
"symbol": "<string>",
"way": 123,
"vwapPrice": 123,
"totalValue": 123,
"totalVol": 123,
"tradeCount": 123
},
"buyUpPct": 123,
"sellDownPct": 123,
"gapValue": 123
}
},
"returnCode": 123,
"serviceInstance": [
{
"serviceType": "<string>",
"instanceID": "<string>",
"lastUnixTime": 123
}
],
"requestID": "<string>",
"algoID": "<string>",
"positionID": "<string>",
"requestType": "<string>",
"detail": "<string>",
"dataType": "<string>",
"executionTime": 123,
"lastTime": 123
}{
"error": "<string>",
"message": "<string>",
"detail": "<string>",
"details": "<string>",
"status": 123
}{
"error": "<string>",
"message": "<string>",
"detail": "<string>",
"details": "<string>",
"status": 123
}{
"error": "<string>",
"message": "<string>",
"detail": "<string>",
"details": "<string>",
"status": 123
}{
"error": "<string>",
"message": "<string>",
"detail": "<string>",
"details": "<string>",
"status": 123
}Phản hồi
Response dữ liệu mã với payload data có schema cụ thể.
Cờ thành công do backend trả về.
Snapshot mã gồm thông tin master, quote, depth và trend.
Hide child attributes
Hide child attributes
Mã giao dịch.
Tên công ty hoặc tên công cụ giao dịch.
Phân ngành cấp 1.
Phân ngành cấp 2.
Phân ngành cấp 3.
Tên ngành do market-data trả về.
Định danh logo dùng bởi client.
Các tin tức liên quan đến mã.
Hide child attributes
Hide child attributes
Điểm/số lượng sentiment bullish.
Tỷ lệ phần trăm sentiment bullish.
Timestamp hoặc thời điểm tổng hợp sentiment bullish.
Điểm/số lượng sentiment bearish.
Tỷ lệ phần trăm sentiment bearish.
Timestamp hoặc thời điểm tổng hợp sentiment bearish.
Hide child attributes
Hide child attributes
Định danh công cụ trong market-data.
Số sequence của quote.
Timestamp quote dạng Unix milliseconds.
Mã giao dịch.
Mã bảng giao dịch.
Giá tham chiếu hoặc giá nominal.
Giá trần trong phiên.
Giá sàn trong phiên.
Giá khớp cuối.
Khối lượng khớp cuối.
Giá mở cửa.
Giá đóng cửa khi có.
Giá cao nhất trong phiên.
Giá thấp nhất trong phiên.
Giá trung bình gia quyền theo khối lượng.
Tổng khối lượng giao dịch.
Tổng giá trị giao dịch.
Mã phiên giao dịch.
Open interest cho phái sinh khi có.
Hide child attributes
Hide child attributes
Định danh static của công cụ.
Mã giao dịch.
Loại chứng khoán/công cụ.
Lô giao dịch chuẩn.
Khối lượng đặt lệnh tối thiểu.
Khối lượng đặt lệnh tối đa.
Bước giá tối thiểu.
Tên ngắn của công cụ.
Mã nhóm sản phẩm từ sở giao dịch.
Ticker code do sở giao dịch sử dụng.
Tên đầy đủ của mã khi có.
Mã tài sản cơ sở cho phái sinh hoặc sản phẩm cấu trúc.
Ngày đáo hạn cho phái sinh khi có.
Quy mô hợp đồng cho phái sinh khi có.
Hide child attributes
Hide child attributes
Số sequence của sổ lệnh.
Timestamp sổ lệnh dạng Unix milliseconds.
Mã giao dịch.
Mã bảng giao dịch.
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Mã giao dịch.
Mã chiều giao dịch.
VWAP của chiều giao dịch này.
Tổng giá trị giao dịch của chiều này.
Tổng khối lượng giao dịch của chiều này.
Số lượng giao dịch của chiều này.
Hide child attributes
Hide child attributes
Mã giao dịch.
Mã chiều giao dịch.
VWAP của chiều giao dịch này.
Tổng giá trị giao dịch của chiều này.
Tổng khối lượng giao dịch của chiều này.
Số lượng giao dịch của chiều này.
Tỷ lệ volume/value thuộc nhóm buy-up.
Tỷ lệ volume/value thuộc nhóm sell-down.
Chênh lệch giá trị giao dịch giữa buy-up và sell-down.
Mã trả về của backend; response thành công thường trả 0.
Request id do market-data service sinh ra.
Algo id được echo lại khi request có truyền.
Position id được echo lại khi request có truyền.
Nhãn loại request do backend trả về.
Thông điệp chi tiết từ backend.
Nhãn loại payload từ backend.
Thời gian xử lý của backend tính bằng milliseconds khi có.
Timestamp dữ liệu mới nhất do service trả về.
curl --request GET \
--url https://api-gw.verolabs.co/api/v1/MarketData/GetVN30Spotconst options = {method: 'GET'};
fetch('https://api-gw.verolabs.co/api/v1/MarketData/GetVN30Spot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api-gw.verolabs.co/api/v1/MarketData/GetVN30Spot"
response = requests.get(url)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-gw.verolabs.co/api/v1/MarketData/GetVN30Spot"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}using RestSharp;
var options = new RestClientOptions("https://api-gw.verolabs.co/api/v1/MarketData/GetVN30Spot");
var client = new RestClient(options);
var request = new RestRequest("");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);falseCURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_WRITEDATA, stdout);
curl_easy_setopt(hnd, CURLOPT_URL, "https://api-gw.verolabs.co/api/v1/MarketData/GetVN30Spot");
CURLcode ret = curl_easy_perform(hnd);{
"isSuccess": true,
"data": {
"symbol": "<string>",
"companyName": "<string>",
"sectorLvl1": "<string>",
"sectorLvl2": "<string>",
"sectorLvl3": "<string>",
"industryName": "<string>",
"logoId": "<string>",
"news": [
{}
],
"sentiment": {
"bullish": 123,
"bullishPercent": 123,
"bullishTime": 123,
"bearish": 123,
"bearishPercent": 123,
"bearishTime": 123
},
"info": {
"id": "<string>",
"seq": 123,
"time": 123,
"symbol": "<string>",
"boardID": "<string>",
"nomiPrc": 123,
"ceilPrc": 123,
"floorPrc": 123,
"lsPrc": 123,
"lsVol": 123,
"openPrc": 123,
"closePrc": 123,
"highPrc": 123,
"lowPrc": 123,
"vWAP": 123,
"totVol": 123,
"totVal": 123,
"tradingSession": "<string>",
"openInterest": 123
},
"stat": {
"id": "<string>",
"symbol": "<string>",
"type": "<string>",
"lot": 123,
"minQty": 123,
"maxQty": 123,
"prcStep": 123,
"name": "<string>",
"productGroupID": "<string>",
"tickerCode": "<string>",
"symbolName": "<string>",
"underlyingSymbolCode": "<string>",
"expirationDate": "<string>",
"contractSize": 123
},
"depth": {
"seq": 123,
"time": 123,
"symbol": "<string>",
"boardID": "<string>",
"bidPriceDepth": [
{
"prc": 123,
"vol": 123
}
],
"askPriceDepth": [
{
"prc": 123,
"vol": 123
}
]
},
"trend": {
"buyUp": {
"symbol": "<string>",
"way": 123,
"vwapPrice": 123,
"totalValue": 123,
"totalVol": 123,
"tradeCount": 123
},
"sellDown": {
"symbol": "<string>",
"way": 123,
"vwapPrice": 123,
"totalValue": 123,
"totalVol": 123,
"tradeCount": 123
},
"buyUpPct": 123,
"sellDownPct": 123,
"gapValue": 123
}
},
"returnCode": 123,
"serviceInstance": [
{
"serviceType": "<string>",
"instanceID": "<string>",
"lastUnixTime": 123
}
],
"requestID": "<string>",
"algoID": "<string>",
"positionID": "<string>",
"requestType": "<string>",
"detail": "<string>",
"dataType": "<string>",
"executionTime": 123,
"lastTime": 123
}{
"error": "<string>",
"message": "<string>",
"detail": "<string>",
"details": "<string>",
"status": 123
}{
"error": "<string>",
"message": "<string>",
"detail": "<string>",
"details": "<string>",
"status": 123
}{
"error": "<string>",
"message": "<string>",
"detail": "<string>",
"details": "<string>",
"status": 123
}{
"error": "<string>",
"message": "<string>",
"detail": "<string>",
"details": "<string>",
"status": 123
}
