
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
Through coinexpy you can simply buy or sell crypto in your Coinex account
pip install coinexpy
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'])
Field amount should be calculated with the 2nd currency in pair e.g. in BTCUSDT you should calculate amount in USDT
For additional support you can always donate.
My TRX address:
TKjj4ds7pyRKrLDPa71aCQ9y73kFQPKjX2
BCH:
qrxfzgu5prerumfmzm20jajkp6nvje092yx8n5g0k6
USDT TRC20:
TKjj4ds7pyRKrLDPa71aCQ9y73kFQPKjX2
If you need another function or found a bug in existing ones submit a new issue Here.
FAQs
Python wrapper for Coinex APIs
We found that coinexpy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.