Bitinka exchange plugin for bt_api — Unified REST API for Spot trading with support for USD, USDT, EUR, and Latin American currencies (ARS, BRL, CLP, COP, PEN).
bt_api_bitinka is a runtime plugin for bt_api that connects to Bitinka exchange. It depends on bt_api_base for core infrastructure.
Bitinka is a Latin American cryptocurrency exchange headquartered in Argentina, offering trading in USD, USDT, EUR, and several Latin American fiat currencies.
| Resource | Link |
|---|---|
| English Docs | https://bt-api-bitinka.readthedocs.io/ |
| Chinese Docs | https://bt-api-bitinka.readthedocs.io/zh/latest/ |
| GitHub | https://github.com/cloudQuant/bt_api_bitinka |
| PyPI | https://pypi.org/project/bt_api_bitinka/ |
| Issues | https://github.com/cloudQuant/bt_api_bitinka/issues |
| bt_api_base | https://bt-api-base.readthedocs.io/ |
| Main Project | https://github.com/cloudQuant/bt_api_py |
| Asset Type | Code | REST | Description |
|---|---|---|---|
| Spot | BITINKA___SPOT |
✅ | Spot trading with USD, USDT, EUR, ARS, BRL, CLP, COP, PEN pairs |
- Market Data — Ticker, order book depth, trades, exchange info
- Account — Balance, account info
- Trading — Place orders, cancel orders, query order status, open orders
Auto-registers at import time via ExchangeRegistry. Works seamlessly with BtApi:
from bt_api_py import BtApi
api = BtApi(exchange_kwargs={
"BITINKA___SPOT": {
"api_key": "your_key",
"secret": "your_secret",
}
})
ticker = api.get_tick("BITINKA___SPOT", "BTCUSDT")
balance = api.get_balance("BITINKA___SPOT")
order = api.make_order(exchange_name="BITINKA___SPOT", symbol="BTCUSDT", volume=0.001, price=50000, order_type="limit")All exchange responses normalized to bt_api_base container types:
TickContainer— 24hr rolling tickerOrderBookContainer— Order book depthTradeContainer— Individual tradesOrderContainer— Order status and fillsAccountBalanceContainer— Asset balances
pip install bt_api_bitinkagit clone https://github.com/cloudQuant/bt_api_bitinka
cd bt_api_bitinka
pip install -e .- Python
3.9–3.14 bt_api_base >= 0.15httpxfor HTTP client
pip install bt_api_bitinkafrom bt_api_py import BtApi
api = BtApi()
ticker = api.get_tick("BITINKA___SPOT", "BTCUSDT")
print(f"BTCUSDT price: {ticker}")from bt_api_py import BtApi
api = BtApi(exchange_kwargs={
"BITINKA___SPOT": {
"api_key": "your_api_key",
"secret": "your_secret",
}
})
order = api.make_order(
exchange_name="BITINKA___SPOT",
symbol="BTCUSDT",
volume=0.001,
price=50000,
order_type="limit",
)
print(f"Order placed: {order}")from bt_api_py import BtApi
api = BtApi(exchange_kwargs={
"BITINKA___SPOT": {"api_key": "key", "secret": "secret"}
})
# REST calls
ticker = api.get_tick("BITINKA___SPOT", "BTCUSDT")
balance = api.get_balance("BITINKA___SPOT")
order = api.make_order(exchange_name="BITINKA___SPOT", symbol="BTCUSDT", volume=0.001, price=50000, order_type="limit")bt_api_bitinka/
├── plugin.py # register_plugin() — bt_api plugin entry point
├── registry_registration.py # register_bitinka() — feeds / exchange_data registration
├── exchange_data/
│ └── __init__.py # BitinkaExchangeData (base) + BitinkaExchangeDataSpot
├── feeds/
│ ├── live_bitinka/
│ │ ├── spot.py # BitinkaRequestDataSpot — SPOT feed
│ │ └── request_base.py # BitinkaRequestData — base request class
│ └── __init__.py
├── containers/ # Normalized data containers
├── errors/
│ └── __init__.py
└── __init__.py
| Category | Operation | Notes |
|---|---|---|
| Market Data | get_tick |
24hr rolling ticker |
get_depth |
Order book depth | |
get_exchange_info |
Exchange configuration | |
get_deals |
Recent trades | |
| Account | get_balance |
Asset balances |
get_account |
Full account info | |
| Trading | make_order |
LIMIT orders |
cancel_order |
Cancel order by ID | |
query_order |
Query order status | |
get_open_orders |
All open orders |
Bitinka trading pairs are supported across multiple quote currencies:
- USDT pairs:
BTCUSDT,ETHUSDT,SOLUSDT... - USD pairs:
BTCUSD,ETHUSD... - EUR pairs:
BTCEUR,ETHEUR... - Latin American fiat:
BTCARS,ETHBRL,BTCCLP,ETHCOP,ETHPEN...
All Bitinka API errors are translated to bt_api_base ApiError subclasses.
| Doc | Link |
|---|---|
| English | https://bt-api-bitinka.readthedocs.io/ |
| 中文 | https://bt-api-bitinka.readthedocs.io/zh/latest/ |
| bt_api_base | https://bt-api-base.readthedocs.io/ |
| Main Project | https://cloudquant.github.io/bt_api_py/ |
MIT — see LICENSE.
- GitHub Issues — bug reports, feature requests
- Email: yunjinqi@gmail.com
bt_api 的 Bitinka 交易所插件 — 为现货交易提供统一的 REST API,支持 USD、USDT、EUR 以及 拉丁美洲法币(ARS、BRL、CLP、COP、PEN)。
bt_api_bitinka 是 bt_api 的运行时插件,连接 Bitinka 交易所。依赖 bt_api_base 提供核心基础设施。
Bitinka 是 拉丁美洲加密货币交易所,总部位于阿根廷,提供 USD、USDT、EUR 及多种拉丁美洲法币的交易对。
| 资产类型 | 代码 | REST | 说明 |
|---|---|---|---|
| 现货 | BITINKA___SPOT |
✅ | 现货交易,支持 USD、USDT、EUR、ARS、BRL、CLP、COP、PEN 交易对 |
- 行情数据 — 行情、订单簿深度、成交、交易所信息
- 账户 — 余额、账户信息
- 交易 — 下单、撤单、查询订单状态、挂单列表
通过 ExchangeRegistry 在导入时自动注册,与 BtApi 无缝协作:
from bt_api_py import BtApi
api = BtApi(exchange_kwargs={
"BITINKA___SPOT": {
"api_key": "your_key",
"secret": "your_secret",
}
})
ticker = api.get_tick("BITINKA___SPOT", "BTCUSDT")
balance = api.get_balance("BITINKA___SPOT")
order = api.make_order(exchange_name="BITINKA___SPOT", symbol="BTCUSDT", volume=0.001, price=50000, order_type="limit")所有交易所响应规范化为 bt_api_base 容器类型:
TickContainer— 24小时滚动行情OrderBookContainer— 订单簿深度TradeContainer— 逐笔成交OrderContainer— 订单状态和成交AccountBalanceContainer— 资产余额
pip install bt_api_bitinkagit clone https://github.com/cloudQuant/bt_api_bitinka
cd bt_api_bitinka
pip install -e .- Python
3.9–3.14 bt_api_base >= 0.15httpxHTTP 客户端
pip install bt_api_bitinkafrom bt_api_py import BtApi
api = BtApi()
ticker = api.get_tick("BITINKA___SPOT", "BTCUSDT")
print(f"BTCUSDT 价格: {ticker}")from bt_api_py import BtApi
api = BtApi(exchange_kwargs={
"BITINKA___SPOT": {
"api_key": "your_api_key",
"secret": "your_secret",
}
})
order = api.make_order(
exchange_name="BITINKA___SPOT",
symbol="BTCUSDT",
volume=0.001,
price=50000,
order_type="limit",
)
print(f"订单已下单: {order}")from bt_api_py import BtApi
api = BtApi(exchange_kwargs={
"BITINKA___SPOT": {"api_key": "key", "secret": "secret"}
})
# REST 调用
ticker = api.get_tick("BITINKA___SPOT", "BTCUSDT")
balance = api.get_balance("BITINKA___SPOT")
order = api.make_order(exchange_name="BITINKA___SPOT", symbol="BTCUSDT", volume=0.001, price=50000, order_type="limit")bt_api_bitinka/
├── plugin.py # register_plugin() — bt_api 插件入口
├── registry_registration.py # register_bitinka() — feeds / exchange_data 注册
├── exchange_data/
│ └── __init__.py # BitinkaExchangeData(基类)+ BitinkaExchangeDataSpot
├── feeds/
│ ├── live_bitinka/
│ │ ├── spot.py # BitinkaRequestDataSpot — SPOT feed
│ │ └── request_base.py # BitinkaRequestData — 请求基类
│ └── __init__.py
├── containers/ # 规范化数据容器
├── errors/
│ └── __init__.py
└── __init__.py
| 类别 | 操作 | 说明 |
|---|---|---|
| 行情数据 | get_tick |
24小时滚动行情 |
get_depth |
订单簿深度 | |
get_exchange_info |
交易所配置 | |
get_deals |
近期成交 | |
| 账户 | get_balance |
资产余额 |
get_account |
完整账户信息 | |
| 交易 | make_order |
限价单 |
cancel_order |
按 ID 撤单 | |
query_order |
查询订单状态 | |
get_open_orders |
所有挂单 |
支持多种计价货币的 Bitinka 交易对:
- USDT 交易对:
BTCUSDT,ETHUSDT,SOLUSDT... - USD 交易对:
BTCUSD,ETHUSD... - EUR 交易对:
BTCEUR,ETHEUR... - 拉丁美洲法币交易对:
BTCARS,ETHBRL,BTCCLP,ETHCOP,ETHPEN...
所有 Bitinka API 错误均翻译为 bt_api_base ApiError 子类。
| 文档 | 链接 |
|---|---|
| 英文文档 | https://bt-api-bitinka.readthedocs.io/ |
| 中文文档 | https://bt-api-bitinka.readthedocs.io/zh/latest/ |
| bt_api_base | https://bt-api-base.readthedocs.io/ |
| 主项目 | https://cloudquant.github.io/bt_api_py/ |
MIT — 详见 LICENSE。
- GitHub Issues — bug 报告、功能请求
- 邮箱: yunjinqi@gmail.com