gopoloniextest

command module
v0.0.0-...-217bdfe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2021 License: GPL-3.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

GoPoloniexTest

Задача получить данные о состоявшихся сделках с биржи Poloniex с помощью Websocket

API - https://docs.poloniex.com/#price-aggregated-book

Goland GitHub release (latest by date) GitHub license

Описание

На входе словарь в виде json-строки:

{"poloniex":["BTC_USDT", "TRX_USDT", "ETH_USDT"]}

Надо подписаться на данные пары(в их API они перевёрнутые, например USDT_BTC)

На выходе(лог в консоль) должна быть структура:

type RecentTrade struct {
    Id        string    // ID транзакции
    Pair      string    // Торговая пара (из списка выше)
    Price     float64   // Цена транзакции
    Amount    float64   // Объём транзакции
    Side      string    // Как биржа засчитала эту сделку (как buy или как sell)
    Timestamp time.Time // Время транзакции
}

Запуск

GoPoloniexTest configFile

Команды:

  • -h (помощь)
  • -v (версия программы)

image

License

Licensed under the GPL-3.0 License.

Documentation

Overview

The task of obtaining data on completed transactions from the Poloniex exchange using Websocket

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址