GithubHelp home page GithubHelp logo

bitflyer's Introduction

Bitflyer Realtime Feed (python)

Installation

pip install bitflyer-rt

Tickers

Available channels:

  • lightning_ticker_BTC_JPY
  • lightning_ticker_FX_BTC_JPY
  • lightning_ticker_ETH_BTC

Example

> python examples/btc_fx.py

887158.0 0.010 887231.0 0.05152   <--- best bid, best bid size, best ask, best ask size
887163.0 0.010 887204.0 0.01200
887163.0 0.010 887204.0 0.01200
887234.0 0.428 887237.0 0.00000
887234.0 0.428 887237.0 0.00000
887234.0 0.377 887244.0 0.01000
887234.0 0.377 887244.0 0.01000
887235.0 0.010 887399.0 0.28054
api = CcxtLikeAPI(api_key=API_KEY, api_secret=API_SECRET)
order_id = api.create_limit_sell_order(ticker=SYMBOL, quantity=0.01, price=950_000)['child_order_acceptance_id']
for i in range(10):
    print(api.fetch_order_status(order_id, symbol=SYMBOL))
    sleep(0.1)
print(api.cancel_order(order_id, symbol=SYMBOL))
for i in range(10):
    print(api.fetch_order_status(order_id, symbol=SYMBOL))
    sleep(0.1)

bitflyer's People

Watchers

 avatar

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.