Skip to main content

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

Project description

JIRNAL

Status License


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.2.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

binancetrader-0.0.2-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

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