Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

binancetrader

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binancetrader

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.

  • 0.0.5
  • PyPI
  • Socket score

Maintainers
1

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

  • python

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)

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc