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
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
binancetrader-0.0.4.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for binancetrader-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6dd4618aad05aaf6a57acc7cacd315704a0c846785ea6ce65ea2026e7f2deb4 |
|
MD5 | 30efa030cd816b461d3f1300fc4edf54 |
|
BLAKE2b-256 | a56c1c95c42663265a2606dadd0f1c935664463b40dcba147eb99ef745a94063 |