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

@socktrader/binance-local-exchange

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@socktrader/binance-local-exchange

Binance local exchange

  • 0.0.3
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Binance logo

Binance Local Exchange

License: GPL v3 Gitter

What is "BLE" or "Binance Local Exchange"

You can interact with BLE as if you would be trading with the real Binance API without taking the risk of making an actual trade. All orders calls will be saved in memory (as long as the server is running) and will be internally matched once the price on Binance hits the expected target. In case of a MARKET order the order will be settled at the current market price on Binance.

Once the order is settled an ExecutionReport is emitted according to the interface of the Binance API. Note that BLE is not 100% local, some endpoints are (always) proxied to Binance. For example kline events will always be proxied to Binance so that BLE can correctly match the orders internally.

Getting started

  • Clone repo git clone https://github.com/SockTrader/Binance-local-exchange
  • Install dependencies cd Binance-local-exchange && npm install
  • Start server npm run start
  • Use localhost:8000 (instead of https://api.binance.com) in your project to make API calls

API endpoints

MethodPathImplemented
GET/api/v3/exchangeInfo
POST/api/v3/order
GET/api/v3/time
POST/api/v3/userDataStream

Websocket streams

StreamImplemented
kline
userDataStream

Internal server endpoints

Can be used to debug or get more information about the internal state of the server

MethodPathImplementedBody / QueryInfo
GET/server/debugReturns the state of the internal stores
GET/server/configReturns the configuration that is used by the server
POST/server/match{ symbol: string, price: number }Tries to match open orders.

Roadmap

  • Add extra security measurements
  • Spot account trades
  • Margin account trades
  • Configuration
  • ...

Contributors

DISCLAIMER

Use at your own risk. Neither SockTrader nor any project contributor can be held responsible for any potential losses.

Keywords

FAQs

Package last updated on 12 Dec 2021

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