Snapshot Movers
Stock Price Change Ranking (by market type)
snapshot/movers/{market}
Parameters
Name | Type | Description |
---|---|---|
market * | string | Market Type |
direction * | string | Rise/Fall,Offer up Rise;down Fall |
change * | string | Change/Change percentage,Offer percent ;value |
type | string | Asset type options,offer ALLBUT099 for common stocks, preferred stocks, and ETFs; COMMONSTOCK for common stocks only |
gt | number | Filter Greater than change |
gte | number | Filter Greater than or equal to change |
lt | number | Filter Less then change |
lte | number | Filter Less than or equal to change |
eq | number | Filter Equal to change |
Response
Name | Type | Description |
---|---|---|
date * | string | Date |
time * | string | Time |
market * | string | Market Type |
change * | string | Change/Change percentage |
data * | object[] | list |
>> type | string | Ticker Type |
>> symbol | string | Stock Number |
>> name | string | Stock Abbreviation in Chinese |
>> openPrice | number | Opening Price |
>> highPrice | number | Highest Price |
>> lowPrice | number | Lowest Price |
>> closePrice | number | Close Price |
>> change | number | Price Change |
>> changePercent | number | Price Change Percentage |
>> tradeVolume | number | Trading Volume |
>> tradeValue | number | Trading Value |
>> lastUpdated | number | Snapshot Time |
info
'*' Indicates mandatory disclosure fields.
Example
- Python
- Node.js
- C#
from fubon_neo.sdk import FubonSDK, Order
sdk = FubonSDK()
accounts = sdk.login("Your ID", "Your password", "Your cert path", "Your cert password")
sdk.init_realtime() # Establish market-data
reststock = sdk.marketdata.rest_client.stock
reststock.snapshot.movers(market='TSE', direction='up', change='percent')
const { FubonSDK } = require('fubon-neo');
const sdk = new FubonSDK();
const accounts = sdk.login("Your ID", "Your password", "Your cert path","Your cert password");
sdk.initRealtime(); // Establish market-data
const client = sdk.marketdata.restClient
client.stock.snapshot.movers({ market: 'TSE', direction: 'up', change: 'percent' })
.then(data => console.log(data));
using FubonNeo.Sdk;
using FugleMarketData.QueryModels;
var sdk = new FubonSDK();
var result = sdk.Login("Your ID", "Your Password", "Your Cert Path", "Your Cert Password");
sdk.InitRealtime(); // Establish market-data
var rest = sdk.MarketData.RestClient.Stock;
var movers = await rest.Snapshot.Movers(FugleMarketData.QueryModels.MarketType.TSE, FugleMarketData.QueryModels.DirectionType.Up,
FugleMarketData.QueryModels.ChangeType.Percent);
var movers_cont = movers.Content.ReadAsStringAsync().Result;
Console.WriteLine(movers_cont);
Response Body:
{
"date": "2023-05-29",
"time": "133500",
"market": "TSE",
"change": "percent",
"data": [
{
"type": "EQUITY",
"symbol": "2901",
"name": "欣欣",
"openPrice": 27.1,
"highPrice": 29.7,
"lowPrice": 27.1,
"closePrice": 29.7,
"change": 2.7,
"changePercent": 10,
"tradeVolume": 640,
"tradeValue": 18824300,
"lastUpdated": 1685338200000000
},
{
"type": "EQUITY",
"symbol": "2345",
"name": "智邦",
"openPrice": 357.5,
"highPrice": 357.5,
"lowPrice": 346.5,
"closePrice": 357.5,
"change": 32.5,
"changePercent": 10,
"tradeVolume": 9350,
"tradeValue": 3331334500,
"lastUpdated": 1685338200000000
},
{
"type": "EQUITY",
"symbol": "3025",
"name": "星通",
"openPrice": 42.3,
"highPrice": 44.65,
"lowPrice": 41.8,
"closePrice": 44.65,
"change": 4.05,
"changePercent": 9.98,
"tradeVolume": 25625,
"tradeValue": 1114127050,
"lastUpdated": 1685338200000000
},
......
]
}