End-of-day Market
Interface Description
Function description: Query end-of-day market information according to instrument_id.
Request URL: /market-data/eod-bars
Request method: GET
Frequency limit: The calling frequency of each AppId is limited to 60 times per minute.
Request parameters
Parameter | Type | Required fields | Description |
---|---|---|---|
instrument_ids | String | Yes | Instrument id collection, such as: 913256135,913303964 . Multiple instrument_ids should be separated by , . A single query supports up to 200 instrument_id |
date | String | No | UTC time. Time format: yyyy-MM-dd , and the default check is conducted on the latest date |
count | Integer | No | With “date” as the deadline, the end-of-day market data of the last “count” trading days: the default is 1, and the maximum limit is 800 |
Response parameter
Field | Type | Description |
---|---|---|
instrument_id | String | Unique identifier for the security |
bars | []Bar | End-of-day market information |
Bar
Field | Type | Description |
---|---|---|
time | String | UTC time, eg: 2021-12-28T09:00:09.945+0000 |
open | String | Opening price |
close | String | Closing price |
high | String | Highest price |
low | String | Lowest price |
volume | String | Trading volume |
Request example
- Python
- Java
from webullsdktrade.api import API
from webullsdkcore.client import ApiClient
from webullsdkcore.common.region import Region
api_client = ApiClient(your_app_key, your_app_secret, Region.JP.value)
api = API(api_client)
res = api.market_data.get_eod_bar(instrument_ids='913303964', count=10)
if res.status_code == 200:
print('eod bar quote:', res.json())
HttpApiConfig apiConfig = HttpApiConfig.builder()
.appKey(Env.APP_KEY)
.appSecret(Env.APP_SECRET)
.regionId(Region.jp.name())
.build();
try (QuotesApiClient quotesApiClient = new HttpQuotesApiClient(apiConfig)) {
List<EodBars> eodBars = quotesApiClient.getEodBars(instrumentIds, date, count);
}