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-1.1.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

bitflyer_rt-1.1.1-py2.py3-none-any.whl (3.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: bitflyer-rt-1.1.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for bitflyer-rt-1.1.1.tar.gz
Algorithm Hash digest
SHA256 8015c056edde6a3b215349a40a8f6a49c8db6ed36cadee9247a5830f192b0c8d
MD5 22a022315ad345bbb4afffe1798db6e5
BLAKE2b-256 acbcbadda6c426bf8e762bccfec697c40a094d8bc0e3f084a9bc89aa9e0ad5d1

See more details on using hashes here.

File details

Details for the file bitflyer_rt-1.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: bitflyer_rt-1.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for bitflyer_rt-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9cbcc3308f0b9f5a99402e311c121691b5918aca239c29842ced30da76065c11
MD5 959c809b3a894758c33bb38ced603fca
BLAKE2b-256 021a6f7ed1c4e25dd78b2fb93ef9eef68cb55b0ab1cc5083b02f410926e5abfc

See more details on using hashes here.

Supported by

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