Skip to main content

Python client library for interacting with the ChainEx cryptocurrency exchange API.

Project description

ChainExAPI Python Client

Overview

ChainExAPI is a Python client library for interacting with the ChainEx cryptocurrency exchange API. It provides a convenient way to integrate ChainEx's services into your Python applications.

Features

  • Easy to use methods for market, wallet, and trading operations.
  • HMAC-SHA-256 authentication for secure API calls.
  • Fetch market summaries, statistics, trades, and orders.
  • Manage wallet balances, deposits, withdrawals, and addresses.
  • Execute and manage trading orders and trades.

Installation

You can install the ChainExAPI library via pip:

pip install chainexapi

Quick Start

Here's a quick example to get you started:

from chainex import ChainExAPI

# Initialize the API client
client = ChainExAPI('your_public_key', 'your_private_key')

# Fetch market summary
market_summary = client.get_market_summary('BTC_ETH')
print(market_summary)

# Fetch wallet balances
wallet_balances = client.get_wallet_balances()
print(wallet_balances)

Usage

Initializing the Client

First, import the ChainExAPI class and initialize it with your public and private API keys:

from chainex import ChainExAPI

client = ChainExAPI('your_public_key', 'your_private_key')

Market Methods

  • get_market_summary(exchange): Fetches market summary for a given exchange.
  • get_market_stats(coin, exchange): Fetches market statistics for a given coin and exchange.
  • ... (and so on for other market methods)

Wallet Methods

  • get_wallet_balances(coin=None): Fetches wallet balances.
  • get_wallet_deposits(coin="ALL", start=0, limit=25): Fetches wallet deposits.
  • ... (and so on for other wallet methods)

Trading Methods

  • get_trading_orders(coin="ALL", start=0, limit=25): Fetches trading orders.
  • add_order(coin, exchange, price, amount, order_type): Adds an order to a specified market.
  • ... (and so on for other trading methods)

Contributing

Contributions to the ChainExAPI library are welcome! Please feel free to submit issues and pull requests to the repository.

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ChainExAPI-0.1.0.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file ChainExAPI-0.1.0.tar.gz.

File metadata

  • Download URL: ChainExAPI-0.1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for ChainExAPI-0.1.0.tar.gz
Algorithm Hash digest
SHA256 244ba30d18c7473dc237ad455a4a2c9122a432633a710b840ab95d804d8e9fd6
MD5 f74f1db85274316f513a88c1b78c997d
BLAKE2b-256 580b3f7f87bf396a98d4ee107c1972bcb6b54a71f80fd2da74e2e1f4f58da33d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page