binancer

An R client to the Public Rest API for Binance.

https://github.com/daroczig/binancer

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (4.8%) to scientific vocabulary

Keywords

api binance binance-api bitcoin blockchain cryptocurrency r rstats
Last synced: 6 months ago · JSON representation

Repository

An R client to the Public Rest API for Binance.

Basic Info
Statistics
  • Stars: 54
  • Watchers: 13
  • Forks: 55
  • Open Issues: 15
  • Releases: 0
Topics
api binance binance-api bitcoin blockchain cryptocurrency r rstats
Created about 8 years ago · Last pushed almost 2 years ago
Metadata Files
Readme

README.md

binancer

An R client to the Public Rest API for Binance.

API docs: https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md

Quick intro to using binancer by getting the most recent ~USD price of the cryptocurrencies supported on Binance:

r library(binancer) binance_coins_prices()

Getting data on a specific symbol pair, e.g. the most recent Bitcoin/USDT changes:

r (klines <- binance_klines('BTCUSDT', interval = '1m'))

Visualize this data, e.g. on a simple line chart:

r library(ggplot2) ggplot(klines, aes(close_time, close)) + geom_line()

Poor man's candle chart with some ggplot2 tweaks:

r library(scales) ggplot(klines, aes(open_time)) + geom_linerange(aes(ymin = open, ymax = close, color = close < open), size = 2) + geom_errorbar(aes(ymin = low, ymax = high), size = 0.25) + theme_bw() + theme('legend.position' = 'none') + xlab('') + ggtitle(paste('Last Updated:', Sys.time())) + scale_y_continuous(labels = dollar) + scale_color_manual(values = c('#1a9850', '#d73027')) # RdYlGn

Extend this to multiple pairs in the past 24 hours using 15 mins intervals:

r library(data.table) klines <- rbindlist(lapply( c('ETHBTC', 'ARKBTC', 'NEOBTC', 'IOTABTC'), binance_klines, interval = '15m', limit = 4*24)) ggplot(klines, aes(open_time)) + geom_linerange(aes(ymin = open, ymax = close, color = close < open), size = 2) + geom_errorbar(aes(ymin = low, ymax = high), size = 0.25) + theme_bw() + theme('legend.position' = 'none') + xlab('') + ggtitle(paste('Last Updated:', Sys.time())) + scale_color_manual(values = c('#1a9850', '#d73027')) + facet_wrap(~symbol, scales = 'free', nrow = 2)

Owner

  • Name: Gergely Daróczi
  • Login: daroczig
  • Kind: user
  • Location: Los Angeles & Hungary
  • Company: @SpareCores / @rxstudioinc

Happy #rstats dev & open-source enthusiast, ex @cardcorp & @openmail, (co)founder of @rxstudioinc, @Rapporter, Hun RUG, @satRdays & @eRum2018 confs. Father of 4

GitHub Events

Total
  • Issues event: 2
  • Watch event: 2
  • Issue comment event: 4
  • Fork event: 2
Last Year
  • Issues event: 2
  • Watch event: 2
  • Issue comment event: 4
  • Fork event: 2

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 155
  • Total Committers: 3
  • Avg Commits per committer: 51.667
  • Development Distribution Score (DDS): 0.381
Past Year
  • Commits: 3
  • Committers: 1
  • Avg Commits per committer: 3.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
madsurgeon a****l@b****h 96
Gergely Daroczi (@daroczig) d****g@r****t 58
krzychu paliga p****u@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 35
  • Total pull requests: 5
  • Average time to close issues: 5 months
  • Average time to close pull requests: 7 days
  • Total issue authors: 26
  • Total pull request authors: 5
  • Average comments per issue: 2.17
  • Average comments per pull request: 3.4
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: about 22 hours
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 3.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • waynelapierre (4)
  • johnatasjmo (3)
  • larry77 (3)
  • siegfried (2)
  • dimitry-ishenko (2)
  • neahook (1)
  • cjmcnair (1)
  • vkorobeynyk (1)
  • 1tomdawson (1)
  • rflsierra (1)
  • viniciushdasilva (1)
  • YsoSirius (1)
  • Miguel0809 (1)
  • canholyavkin (1)
  • Trader12345a (1)
Pull Request Authors
  • daroczig (2)
  • madsurgeon (1)
  • stanyip (1)
  • siegfried (1)
  • krzysztofpaliga (1)
Top Labels
Issue Labels
help wanted (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 402 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 3
  • Total versions: 1
  • Total maintainers: 1
cran.r-project.org: binancer

API Client to 'Binance'

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 3
  • Downloads: 402 Last month
Rankings
Forks count: 1.3%
Stargazers count: 6.1%
Average: 16.0%
Dependent repos count: 16.5%
Downloads: 27.4%
Dependent packages count: 28.7%
Maintainers (1)
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • data.table * imports
  • digest * imports
  • httr * imports
  • jsonlite * imports
  • logger * imports
  • snakecase * imports
.github/workflows/pkgdown.yaml actions
  • actions/checkout v4 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite