Skip to content

Repository files navigation

MEXC

Exchange plugin for bt_api framework.

PyPI VersionPython VersionsLicenseCIDocs


English | 中文

Overview

This package provides MEXC exchange plugin for bt_api, supporting Spot and USDT-M Perpetual trading. for the bt_api framework. It offers a unified interface for interacting with MEXC exchange.

Features

  • Exchange integration with bt_api
  • REST API support
  • Market data access
  • Basic trading operations

Installation

pip install bt_api_mexc

Or install from source:

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

Quick Start

frombt_api_mexcimportMexcApi# Initializefeed=MexcApi(api_key="your_key", secret="your_secret")
# Get ticker dataticker=feed.get_ticker("BTCUSDT")
print(ticker)

Supported Operations

OperationStatus
Ticker
OrderBook
Trades
Bars/Klines
Orders
Balances
Positions

Online Documentation

ResourceLink
English Docshttps://bt-api-mexc.readthedocs.io/
Chinese Docshttps://bt-api-mexc.readthedocs.io/zh/latest/
GitHub Repositoryhttps://github.com/cloudQuant/bt_api_mexc
Issue Trackerhttps://github.com/cloudQuant/bt_api_mexc/issues

Requirements

  • Python 3.9+
  • bt_api_base >= 0.15

Architecture

bt_api_mexc/
├── src/bt_api_mexc/ # Source code
│ ├── containers/ # Data containers
│ ├── feeds/ # API feeds
│ ├── gateway/ # Gateway adapter
│ └── plugin.py # Plugin registration
├── tests/ # Unit tests
└── docs/ # Documentation

License

MIT License - see LICENSE for details.

Support


中文

概述

本包为 bt_api 框架提供 MEXC exchange plugin for bt_api, supporting Spot and USDT-M Perpetual trading.。它提供了与 MEXC 交易所交互的统一接口。

功能特点

  • bt_api交易所集成
  • REST API支持
  • 市场数据访问
  • 基本交易操作

安装

pip install bt_api_mexc

或从源码安装:

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

快速开始

frombt_api_mexcimportMexcApi# 初始化feed=MexcApi(api_key="your_key", secret="your_secret")
# 获取行情数据ticker=feed.get_ticker("BTCUSDT")
print(ticker)

支持的操作

操作状态
Ticker
OrderBook
Trades
Bars/Klines
Orders
Balances
Positions

在线文档

资源链接
英文文档https://bt-api-mexc.readthedocs.io/
中文文档https://bt-api-mexc.readthedocs.io/zh/latest/
GitHub 仓库https://github.com/cloudQuant/bt_api_mexc
问题反馈https://github.com/cloudQuant/bt_api_mexc/issues

系统要求

  • Python 3.9+
  • bt_api_base >= 0.15

架构

bt_api_mexc/
├── src/bt_api_mexc/ # 源代码
│ ├── containers/ # 数据容器
│ ├── feeds/ # API 源
│ ├── gateway/ # 网关适配器
│ └── plugin.py # 插件注册
├── tests/ # 单元测试
└── docs/ # 文档

许可证

MIT 许可证 - 详见 LICENSE

技术支持

About

Exchange adapter package for bt_api

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages