Intraday Trades
取得股票成交明細(依代碼查詢)
GET /intraday/trades/{symbol}
Parameters
Name | Type | Description |
---|---|---|
symbol * | string | 股票代碼 |
type | string | Ticker 類型,可選 oddlot 盤中零股 |
offset | number | 偏移量 |
limit | number | 限制量 |
sort | string | 時間排序,預設為 desc 降冪,可選 asc 升冪 |
isTrial | boolean | 查詢試撮明細: true |
Response
Name | Type | Description |
---|---|---|
date * | string | 日期 |
type * | string | Ticker 類型 |
exchange * | string | 交易所 |
market | string | 市場別 |
symbol * | string | 股票代號 |
data * | object[] | 成交明細 |
data[0].bid | number | 成交買價 |
data[0].ask | number | 成交賣價 |
data[0].price | number | 成交價格 |
data[0].size | number | 成交單量 |
data[0].volume | number | 成交總量 |
data[0].time | number | 成交時間 |
data[0].serial | number | 流水號 |
Example
- cURL
- Python
- Node.js
curl -X 'GET' \
'https://api.fugle.tw/marketdata/v1.0/stock/intraday/trades/0050' \
-H 'X-API-KEY: <YOUR_API_KEY>'
from fugle_marketdata import RestClient
client = RestClient(api_key='YOUR_API_KEY')
stock = client.stock
stock.intraday.trades(symbol='2330')
const { RestClient } = require('@fugle/marketdata');
const client = new RestClient({ apiKey: 'YOUR_API_KEY' });
client.stock.intraday.trades({ symbol: '2330' })
.then(data => console.log(data));
Response Body:
{
"date": "2023-05-29",
"type": "EQUITY",
"exchange": "TWSE",
"market": "TSE",
"symbol": "2330",
"data": [
{
"price": 568,
"size": 32,
"time": 1685341800000000,
"serial": 99999999
},
{
"bid": 567,
"ask": 568,
"price": 568,
"size": 4778,
"volume": 54538,
"time": 1685338200000000,
"serial": 6652422
},
{
"bid": 565,
"ask": 566,
"price": 566,
"size": 1,
"volume": 49760,
"time": 1685337899721587,
"serial": 6622549
},
......
]
}