Technical
In European stock data, we offer 1 dataset, as follows:
In addition, the following list summarizes the available datasets:
The usage of each dataset is explained one by one below. For the specific dataset schemas, please refer to finmindapi
Europe Stock List EuropeStockInfo¶
- This dataset primarily lists the names, codes, and industry categories of all European listed and OTC stocks.
Example
import requests
import pandas as pd
url = 'https://api.finmindtrade.com/api/v4/data'
token = "" # Refer to the login page to obtain your API key
headers = {"Authorization": f"Bearer {token}"}
parameter = {
"dataset": "EuropeStockInfo"
}
data = requests.get(url, headers=headers, params=parameter)
data = data.json()
data = pd.DataFrame(data['data'])
print(data.head())
Output
| date | stock_id | Market | stock_name | |
|---|---|---|---|---|
| 0 | 2019-01-14 | 2CRSI.PA | Euronext Paris | 2CRSI |
| 1 | 2019-01-14 | AAA.AS | Euronext Amsterdam | AP ALTERNAT ASSETS |
| 2 | 2019-01-14 | AALB.AS | Euronext Amsterdam | AALBERTS INDUSTR |
| 3 | 2019-01-14 | AB.PA | Euronext Paris | AB SCIENCE |
| 4 | 2019-01-14 | ABCA.PA | Euronext Paris | ABC ARBITRAGE |
Europe Stock Price Table EuropeStockPrice¶
Example
import requests
import pandas as pd
url = 'https://api.finmindtrade.com/api/v4/data'
token = "" # Refer to the login page to obtain your API key
headers = {"Authorization": f"Bearer {token}"}
parameter = {
"dataset": "EuropeStockPrice",
"data_id": "AALB.AS",
"start_date": "2020-06-16",
"end_date": "2021-06-16",
}
data = requests.get(url, headers=headers, params=parameter)
data = data.json()
data = pd.DataFrame(data['data'])
print(data.head())
Output
| date | stock_id | Adj_Close | Close | High | Low | Open | Volume | |
|---|---|---|---|---|---|---|---|---|
| 0 | 2020-06-16 | AALB.AS | 26.82 | 28.37 | 29.03 | 27.99 | 28.35 | 603839 |
| 1 | 2020-06-17 | AALB.AS | 26.81 | 28.35 | 28.88 | 28.26 | 28.38 | 512502 |
| 2 | 2020-06-18 | AALB.AS | 27.15 | 28.71 | 29.05 | 28.01 | 28.34 | 452985 |
| 3 | 2020-06-19 | AALB.AS | 26.47 | 28 | 29 | 27.97 | 29 | 1466512 |
| 4 | 2020-06-22 | AALB.AS | 26.57 | 28.1 | 28.34 | 27.5 | 28 | 281713 |