New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/alextsa22/cryptocurrency-order-book

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/alextsa22/cryptocurrency-order-book

  • v0.0.0-20210914044149-43178004b826
  • Source
  • Go
  • Socket score

Version published
Created
Source

Cryptocurrency Order Book

Task description

It is necessary to obtain the BID and ASK order books using the open API of the BINANCE exchange. The number of orders in each order book is 15. For each order book, calculate the sum of the volumes of orders in it. For each order book, order data and total order quantities are displayed. Then display the resulting information in a convenient format.

Data collection method:

  • Low level: Using the REST protocol at a rate of 1 request / sec.
  • High level: Continuous over the WebSocket protocol.

Display method:

  • Low level: In cmd.
  • 🔲High level: In a web browser.

Installation

To run, you need to install Docker.

You must make a copy of the vendor dependencies before using Dockerfile.dev. This can be done using the command:

go mod vendor

Running

To run the application, run the commands:

make build & make run

Or you can use docker commands directly:

docker build -t delivery-service .
docker run --rm -t -i delivery-service

Run Dev:

docker build -t delivery-service -f Dockerfile.dev .

Note

You can stop the program with Ctrl + C.

Example

Launch with delivery over websockets:

FAQs

Package last updated on 14 Sep 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