data912

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Data912 — data912.com API

Data912 — data912.com API

API gratuita con datos del mercado argentino. Refresca cada 20 segundos, rate limit 120 req/min.
Base URL:
https://data912.com
一款免费的阿根廷市场数据API,每20秒刷新一次,请求限制为每分钟120次。
Base URL:
https://data912.com

Endpoints Live

实时数据接口(Endpoints Live)

Consultar precios en tiempo real:
EndpointDescripción
/live/mep
USD MEP implícito
/live/ccl
USD CCL implícito
/live/arg_stocks
Acciones argentinas
/live/arg_options
Opciones
/live/arg_cedears
CEDEARs
/live/arg_notes
Notas gubernamentales
/live/arg_corp
Deuda corporativa
/live/arg_bonds
Bonos gubernamentales
/live/usa_adrs
ADRs estadounidenses
/live/usa_stocks
Acciones estadounidenses
查询实时价格:
接口描述
/live/mep
隐含MEP美元汇率
/live/ccl
隐含CCL美元汇率
/live/arg_stocks
阿根廷股票
/live/arg_options
期权
/live/arg_cedears
CEDEARs
/live/arg_notes
政府票据
/live/arg_corp
企业债务
/live/arg_bonds
政府债券
/live/usa_adrs
美国存托凭证(ADRs)
/live/usa_stocks
美国股票

Ejemplo live

实时数据示例

python
import requests
r = requests.get("https://data912.com/live/arg_stocks")
df = pd.DataFrame(r.json())
python
import requests
r = requests.get("https://data912.com/live/arg_stocks")
df = pd.DataFrame(r.json())

Endpoints Históricos (OHLC)

历史数据接口(Endpoints Históricos (OHLC))

Descargá el catálogo de tickers en ./references/tickers_stocks.md, ./references/tickers_cedears.md y ./references/tickers_bonds.md.
EndpointDescripción
/historical/stocks/{ticker}
OHLC de acciones argentinas
/historical/cedears/{ticker}
OHLC de CEDEARs
/historical/bonds/{ticker}
OHLC de bonos
可在./references/tickers_stocks.md./references/tickers_cedears.md./references/tickers_bonds.md下载代码目录。
接口描述
/historical/stocks/{ticker}
阿根廷股票OHLC数据
/historical/cedears/{ticker}
CEDEARs的OHLC数据
/historical/bonds/{ticker}
债券的OHLC数据

Ejemplo histórico

历史数据示例

python
ticker = "GGAL"
r = requests.get(f"https://data912.com/historical/stocks/{ticker}")
df = pd.DataFrame(r.json())
df["date"] = pd.to_datetime(df["date"])
df = df.set_index("date").sort_index()
Campos OHLC:
date
,
o
(open),
h
(high),
l
(low),
c
(close),
v
(volume),
dr
(daily return),
sa
(sigma annualized)
python
ticker = "GGAL"
r = requests.get(f"https://data912.com/historical/stocks/{ticker}")
df = pd.DataFrame(r.json())
df["date"] = pd.to_datetime(df["date"])
df = df.set_index("date").sort_index()
OHLC字段:
date
(日期)、
o
(开盘价)、
h
(最高价)、
l
(最低价)、
c
(收盘价)、
v
(成交量)、
dr
(日收益率)、
sa
(年化波动率)

Volatilidades (EOD)

波动率数据(EOD)

python
ticker = "YPF"
r = requests.get(f"https://data912.com/eod/volatilities/{ticker}")
Campos: IV short/medium/long term, HV short/medium/long term, IV/HV ratios y percentiles, fair IV.
python
ticker = "YPF"
r = requests.get(f"https://data912.com/eod/volatilities/{ticker}")
字段: 短期/中期/长期隐含波动率(IV)、短期/中期/长期历史波动率(HV)、IV/HV比率及百分位数、合理隐含波动率。

Descargar CSV de históricos

下载历史数据CSV文件

Usá el script ./scripts/download_historical.py:
bash
python ./scripts/download_historical.py --type stocks --tickers GGAL,PAMP,YPFD --output data/
python ./scripts/download_historical.py --type cedears --tickers AAPL,GOOGL,MSFT --output data/
python ./scripts/download_historical.py --type bonds --tickers AL30,GD30,GD35 --output data/
python ./scripts/download_historical.py --type all --tickers GGAL,AL30,AAPL --output data/
使用脚本./scripts/download_historical.py
bash
python ./scripts/download_historical.py --type stocks --tickers GGAL,PAMP,YPFD --output data/
python ./scripts/download_historical.py --type cedears --tickers AAPL,GOOGL,MSFT --output data/
python ./scripts/download_historical.py --type bonds --tickers AL30,GD30,GD35 --output data/
python ./scripts/download_historical.py --type all --tickers GGAL,AL30,AAPL --output data/

Rate Limits

请求限制(Rate Limits)

  • 120 requests/minuto por endpoint
  • Datos refresh cada 20 segundos (no es real-time real)
  • Sin autenticación requerida
  • 每个接口每分钟120次请求
  • 数据每20秒刷新一次(并非真正的实时数据)
  • 无需身份验证