Skip to content

Repository files navigation

bt_api_bitinka

PyPI VersionPython VersionsLicenseCIDocs


bt_api_bitinka

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.

ResourceLink
English Docshttps://bt-api-bitinka.readthedocs.io/
Chinese Docshttps://bt-api-bitinka.readthedocs.io/zh/latest/
GitHubhttps://github.com/cloudQuant/bt_api_bitinka
PyPIhttps://pypi.org/project/bt_api_bitinka/
Issueshttps://github.com/cloudQuant/bt_api_bitinka/issues
bt_api_basehttps://bt-api-base.readthedocs.io/
Main Projecthttps://github.com/cloudQuant/bt_api_py

Features

1 Asset Type

Asset TypeCodeRESTDescription
SpotBITINKA___SPOTSpot trading with USD, USDT, EUR, ARS, BRL, CLP, COP, PEN pairs

REST API

  • Market Data — Ticker, order book depth, trades, exchange info
  • Account — Balance, account info
  • Trading — Place orders, cancel orders, query order status, open orders

Plugin Architecture

Auto-registers at import time via ExchangeRegistry. Works seamlessly with BtApi:

frombt_api_pyimportBtApiapi=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")

Unified Data Containers

All exchange responses normalized to bt_api_base container types:

  • TickContainer — 24hr rolling ticker
  • OrderBookContainer — Order book depth
  • TradeContainer — Individual trades
  • OrderContainer — Order status and fills
  • AccountBalanceContainer — Asset balances

Installation

From PyPI (Recommended)

pip install bt_api_bitinka

From Source

git clone https://github.com/cloudQuant/bt_api_bitinka
cd bt_api_bitinka
pip install -e .

Requirements

  • Python 3.93.14
  • bt_api_base >= 0.15
  • httpx for HTTP client

Quick Start

1. Install

pip install bt_api_bitinka

2. Get ticker (public — no API key needed)

frombt_api_pyimportBtApiapi=BtApi()
ticker=api.get_tick("BITINKA___SPOT", "BTCUSDT")
print(f"BTCUSDT price: {ticker}")

3. Place an order (requires API key)

frombt_api_pyimportBtApiapi=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}")

4. bt_api Plugin Integration

frombt_api_pyimportBtApiapi=BtApi(exchange_kwargs={
"BITINKA___SPOT": {"api_key": "key", "secret": "secret"}
})
# REST callsticker=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")

Architecture

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

Supported Operations

CategoryOperationNotes
Market Dataget_tick24hr rolling ticker
get_depthOrder book depth
get_exchange_infoExchange configuration
get_dealsRecent trades
Accountget_balanceAsset balances
get_accountFull account info
Tradingmake_orderLIMIT orders
cancel_orderCancel order by ID
query_orderQuery order status
get_open_ordersAll open orders

Supported Bitinka Symbols

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 ...

Error Handling

All Bitinka API errors are translated to bt_api_base ApiError subclasses.


Documentation

DocLink
Englishhttps://bt-api-bitinka.readthedocs.io/
中文https://bt-api-bitinka.readthedocs.io/zh/latest/
bt_api_basehttps://bt-api-base.readthedocs.io/
Main Projecthttps://cloudquant.github.io/bt_api_py/

License

MIT — see LICENSE.


Support



中文

bt_api 的 Bitinka 交易所插件 — 为现货交易提供统一的 REST API,支持 USDUSDTEUR 以及 拉丁美洲法币(ARS、BRL、CLP、COP、PEN)。

bt_api_bitinkabt_api 的运行时插件,连接 Bitinka 交易所。依赖 bt_api_base 提供核心基础设施。

Bitinka 是 拉丁美洲加密货币交易所,总部位于阿根廷,提供 USD、USDT、EUR 及多种拉丁美洲法币的交易对。

资源链接
英文文档https://bt-api-bitinka.readthedocs.io/
中文文档https://bt-api-bitinka.readthedocs.io/zh/latest/
GitHubhttps://github.com/cloudQuant/bt_api_bitinka
PyPIhttps://pypi.org/project/bt_api_bitinka/
问题反馈https://github.com/cloudQuant/bt_api_bitinka/issues
bt_api_basehttps://bt-api-base.readthedocs.io/
主项目https://github.com/cloudQuant/bt_api_py

功能特点

1 种资产类型

资产类型代码REST说明
现货BITINKA___SPOT现货交易,支持 USD、USDT、EUR、ARS、BRL、CLP、COP、PEN 交易对

REST API

  • 行情数据 — 行情、订单簿深度、成交、交易所信息
  • 账户 — 余额、账户信息
  • 交易 — 下单、撤单、查询订单状态、挂单列表

插件架构

通过 ExchangeRegistry 在导入时自动注册,与 BtApi 无缝协作:

frombt_api_pyimportBtApiapi=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 — 资产余额

安装

从 PyPI 安装(推荐)

pip install bt_api_bitinka

从源码安装

git clone https://github.com/cloudQuant/bt_api_bitinka
cd bt_api_bitinka
pip install -e .

系统要求

  • Python 3.93.14
  • bt_api_base >= 0.15
  • httpx HTTP 客户端

快速开始

1. 安装

pip install bt_api_bitinka

2. 获取行情(公开接口,无需 API key)

frombt_api_pyimportBtApiapi=BtApi()
ticker=api.get_tick("BITINKA___SPOT", "BTCUSDT")
print(f"BTCUSDT 价格: {ticker}")

3. 下单交易(需要 API key)

frombt_api_pyimportBtApiapi=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}")

4. bt_api 插件集成

frombt_api_pyimportBtApiapi=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_tick24小时滚动行情
get_depth订单簿深度
get_exchange_info交易所配置
get_deals近期成交
账户get_balance资产余额
get_account完整账户信息
交易make_order限价单
cancel_order按 ID 撤单
query_order查询订单状态
get_open_orders所有挂单

支持的 Bitinka 交易对

支持多种计价货币的 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_basehttps://bt-api-base.readthedocs.io/
主项目https://cloudquant.github.io/bt_api_py/

许可证

MIT — 详见 LICENSE


技术支持

About

Exchange adapter package for bt_api

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages