It is a client-side package of Jirnals trading system as a Binance REST Api-based SDK midleware. Valid Binance account and Jirnal account are required to work with this package.
Project description
Overview
It is a client-side package of Jirnal's trading system as a Binance REST Api-based SDK midleware. Valid Binance account and Jirnal account are required to work with this package.
Requirements
This package only supports the latest patch release of Python.
Dependencies
Installation
pip install binancetrader
Example
Let's take a look at a quick example of using binancetrader package to send some simple orders over Jirnal system.
from binancetrader import BinanceTrader as bint
client = bint(
strat = "gamma",
address = "You're given ip address",
port = 8000,
api_key = "You're given api tocken"
)
client.marketOrder("BTCUSDT","BUY","0.001") #symbol,side,quantit
client.limitOrder("BTCUSDT","BUY","0.001","50000") #symbol,side,quantity,price
client.stopOrder("BTCUSDT","sell","0.001","40000") #symbol,side,quantity,price,stopPrice
client.takeProfitOrder("BTCUSDT","sell","0.001","60000") #symbol,side,quantity,price,stopPrice
client.trailStopOrder("BTCUSDT","sell","0.001","55000","0.1") #symbol,side,quantity,activationPrice,callbackRate
client.currentPositions("BTCUSDT") #symbol
client.closeCurrentPositions("BTCUSDT") #symbol
client.currentOrders("BTCUSDT") #symbol
client.cancelOrder("BTCUSDT","19225478") #symbol,orderId
client.cancelAllOpenOrder("BTCUSDT") #symbol
client.lastTrades("BTCUSDT","1640475569000","1640512577000","10") #symbol
client.futuresBalance("USDT") #symbol(DOT,BTC,SOL,BNB,ETH,ADA,USDT,XRP,BUSD)
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
Built Distribution
File details
Details for the file binancetrader-0.0.5.tar.gz
.
File metadata
- Download URL: binancetrader-0.0.5.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72212f2b6eeef64b45cbc1ac50e77a91248cc47f9b4ad78f5423c481942bdb79 |
|
MD5 | 9dd75083c664fca567eb7fbc2ea5ec47 |
|
BLAKE2b-256 | cbd4b4a40c79a19ab0a4929ee94986a0376cc967d2a9e87f1386ee68099d024d |
File details
Details for the file binancetrader-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: binancetrader-0.0.5-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81ea6bfda53552c5b9dac2bc7a82f9a7ba4dd7f04e55ed3e6b8a9f9c6483986c |
|
MD5 | e51d3e8fb970230a36650a191e7f85de |
|
BLAKE2b-256 | 57fbce8ef6294798b27bdfa64c64336dc87de60a7653ea9ba21924f6d73a0016 |