Giter VIP home page Giter VIP logo

bitso-historical-data's Introduction

Bitso Historical Data

Get historical data from Bitso (https://bitso.com) OHLC csv format.

You can get list of available books from their API https://api.bitso.com/v3/available_books/

How to run

  1. Get GIT if you don't have it yet https://git-scm.com/downloads

  2. Get Node.JS if you don't have it yet https://nodejs.org/en/download

  3. Execute the next lines within a Terminal window in your Pc/Laptop/Mac

git clone https://github.com/kalinbas/bitso-historical-data.git

cd bitso-historical-data

For example: Download all historical data btc_mxn 1h candles from 2020-01-01 to 2021-01-01 and save to output.csv (candle size in seconds 3600s)

node index.js btc_mxn output.csv 2020-01-01 2021-01-01 3600

Valid values for timeframe

  • 60 (1 min)
  • 300 (5 min)
  • 900 (15 min)
  • 1800 (30 min)
  • 3600 (1 h)
  • 14400 (4 h)
  • 21600 (6 h)
  • 43200 (12 h)
  • 86400 (1 d)
  • 259200 (3 d)
  • 604800 (7 d)

In example.csv you can see an example output.

Advice

This code uses an undocumented WS so if for some reason it won't work anymore you can use a slower version (index_slow.js) which rebuilds candles from order history.

bitso-historical-data's People

Contributors

diegotco avatar kalinbas avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

diegotco

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.