Python wrapper for Coinex APIs

Overview

coinexpy - Python wrapper for Coinex APIs

Through coinexpy you can simply buy or sell crypto in your Coinex account

Features

  • place limit order
  • place market order
  • get balance
  • get price

Install

pip install coinexpy

Example

You can create API key and get your access_id & secret_key here

from coinexpy.coinex import Coinex


coinex = Coinex('<your_access_id>', '<your_secret_key>')

balance = coinex.get_balance()
usdt_balance = coinex.get_available('USDT')
btc_price = coinex.get_last_price('BTCUSDT')

coinex.market_buy('BTCUSDT', 100)  # buy 100$ worth of bitcoin with market price
coinex.market_sell('BTCUSDT', 100)  # sell 100$ worth of BTC

coinex.limit_buy('BTCUSDT', 100, 50000) # place a limit buy order on bitcoin with amount=100$
result = coinex.limit_sell('BTCUSDT', 100, 50000)

coinex.cancel_order(result['id'], result['market'])

Amount

Field amount should be calculated with the 2nd currency in pair e.g. in BTCUSDT you should calculate amount in USDT

Donate

For additional support you can always donate.

My TRX address:

TKjj4ds7pyRKrLDPa71aCQ9y73kFQPKjX2

BCH:

qrxfzgu5prerumfmzm20jajkp6nvje092yx8n5g0k6

USDT TRC20:

TKjj4ds7pyRKrLDPa71aCQ9y73kFQPKjX2
You might also like...
Die wichtigsten APIs Deutschlands in einem Python Paket.

Deutschland A python package that gives you easy access to the most valuable datasets of Germany. Installation pip install deutschland Geographic data

Automation application was made by me using Google, Sheet and Slack APIs with Python.

README This application is used to transfer the data in the xlsx document we have to the Google Drive environment and calculate the "total budget" wit

Autodrive is designed to make it as easy as possible to interact with the Google Drive and Sheets APIs via Python

Autodrive Autodrive is designed to make it as easy as possible to interact with the Google Drive and Sheets APIs via Python. It is especially designed

Python client for the iNaturalist APIs
Python client for the iNaturalist APIs

pyinaturalist Introduction iNaturalist is a community science platform that helps people get involved in the natural world by observing and identifyin

Prisma Cloud utility scripts, and a Python SDK for Prisma Cloud APIs.

pcs-toolbox Prisma Cloud utility scripts, and a Python SDK for Prisma Cloud APIs. Table of Contents Support Setup Configuration Script Usage CSPM Scri

AuthGG is a Python library for dealing with Auth.gg apis

AuthGG AuthGG is a Python library for dealing with Auth.gg apis Installation Use the package manager pip to install requests Add the auth.py file in y

An API Client package to access the APIs for NBA.com

nba_api An API Client package to access the APIs for NBA.com Development Version: v1.1.9 nba_api is an API Client for www.nba.com. This package is mea

A collective list of free APIs for use in software and web development.

Public APIs A collective list of free APIs for use in software and web development. A public API for this project can be found here! For information o

Stop writing scripts to interact with your APIs. Call them as CLIs instead.
Stop writing scripts to interact with your APIs. Call them as CLIs instead.

Zum Stop writing scripts to interact with your APIs. Call them as CLIs instead. Zum (German word roughly meaning "to the" or "to" depending on the con

Comments
  • perpetual

    perpetual

    سلام واقعا خوب و تمیز نوشتید و دیدنش لذتبخشه من هرچی گشتم توی داکیومنت کوینکس چیزی در باره معامله به صورت بجز اسپوت نداشت شما که بیشتر مطالعه کردید چیزی دیدید که بشه معامله به شکل perpetual انجام داد؟

    opened by bahram2000 2
  • margin pairs of www.coinex.com

    margin pairs of www.coinex.com

    Hi Www.coinex.com is an expanding global exchange in the crypto world. There is a less helpful package for algorithmic trading. This repository is helpful and useful to develop python codes for crypto traders. I think, to add margin pairs trade support will increase the efficiency and acceptance of this repository.

    opened by Mehdi1m 0
  • Add examples for perpetual pairs

    Add examples for perpetual pairs

       Thanks for your great repository. Please add some examples to buy/sell www.coinex.com perpetual pairs with this code.  I installed repository in the Google Colab and Perpetual trade commands can't be seen in the terminal.
    

    Error 1: acquire_executed_order_list NameError: name 'acquire_executed_order_list' is not defined Error 2: place_market_order AttributeError: type object 'Coinex' has no attribute 'place_market_order'

    opened by Mehdi1m 0
Releases(v0.5.1)
Owner
Iman Mousaei
Iman Mousaei
Python wrapper for the Sportradar APIs ⚽️🏈

Sportradar APIs This is a Python wrapper for the sports APIs provided by Sportradar. You'll need to sign up for an API key to use the service. Sportra

John W. Miller 39 Jan 1, 2023
🚀 An asynchronous python API wrapper meant to replace discord.py - Snappy discord api wrapper written with aiohttp & websockets

Pincer An asynchronous python API wrapper meant to replace discord.py ❗ The package is currently within the planning phase ?? Links |Join the discord

Pincer 125 Dec 26, 2022
Discord-Wrapper - Discord Websocket Wrapper in python

This does not currently work and is in development Discord Websocket Wrapper in

null 3 Oct 25, 2022
A wrapper for slurm especially on Taiwania2 (HPC CLI)A wrapper for slurm especially on Taiwania2 (HPC CLI)

TWCC-slurm-wrapper A wrapper for slurm especially on Taiwania2 (HPC CLI). For Taiwania2 (HPC CLI) usage, please refer to here. (中文) How to Install? gi

Chi-Liang, Liu 5 Oct 7, 2022
Aws-lambda-requests-wrapper - Request/Response wrapper for AWS Lambda with API Gateway

AWS Lambda Requests Wrapper Request/Response wrapper for AWS Lambda with API Gat

null 1 May 20, 2022
🐍 The official Python client library for Google's discovery based APIs.

Google API Client This is the Python client library for Google's discovery based APIs. To get started, please see the docs folder. These client librar

Google APIs 6.2k Jan 8, 2023
The official Python client library for the Kite Connect trading APIs

The Kite Connect API Python client - v3 The official Python client for communicating with the Kite Connect API. Kite Connect is a set of REST-like API

Zerodha Technology 756 Jan 6, 2023
:snake: Python SDK to query Scaleway APIs.

Scaleway SDK Python SDK to query Scaleway's APIs. Stable release: Development: Installation The package is available on pip. To install it in a virtua

Scaleway 114 Dec 11, 2022
Python interface to the World Bank Indicators and Climate APIs

wbpy A Python interface to the World Bank Indicators and Climate APIs. Readthedocs Github source World Bank API docs The Indicators API lets you acces

Matt Duck 47 Oct 31, 2022
🐍 The official Python client library for Google's discovery based APIs.

Google API Client This is the Python client library for Google's discovery based APIs. To get started, please see the docs folder. These client librar

Google APIs 6.2k Dec 31, 2022