Skip to main content

Bitflyer Realtime and Rest API

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bitflyer-rt-2.3.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

bitflyer_rt-2.3-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file bitflyer-rt-2.3.tar.gz.

File metadata

  • Download URL: bitflyer-rt-2.3.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for bitflyer-rt-2.3.tar.gz
Algorithm Hash digest
SHA256 9265ff391c45733b2c04f7159110b67786fe39eabb77ace188826723930f9888
MD5 62762d9b4545fef8d92c43b4944ac9ec
BLAKE2b-256 bdbc0860b1bdf104dcdbff06eda37575c5ced85fe4675f067378f09eb69bf377

See more details on using hashes here.

File details

Details for the file bitflyer_rt-2.3-py3-none-any.whl.

File metadata

  • Download URL: bitflyer_rt-2.3-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for bitflyer_rt-2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 640fda5364a7ce89279dd2af821dd3e3cce9b62a3081522eee374a55be05d5f5
MD5 7e38a75ed9ad4bd8e58c3d3540ac9538
BLAKE2b-256 34afd960a18878e054db66f387e91dafd5786150b8eb27c3effb356dc3f9f87f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page