Skip to content

Sample program of call Bitflyer Realtime API [JSON-RPC 2.0] over Websocket by Python

Notifications You must be signed in to change notification settings

AvocadoWasabi/Bitflyer-Realtime-API-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

日本語版はREADME.mdを参照してください。

Bitflyer-Realtime-API-Python

This is a sample program which call s BitFlyer Realtime API by Python. (Bitflyer is a one of Bit-coin exchange point.)

There is 3 way to call realtime API,ands this program uses one of them, JSON-RPC2.0 over Websocket.

##Requirement install websocket-client version 0.47.0

pip install websocket-client==0.47.0

Basic Behavior

This program uses websocket library for connection. On connection, the callback function "on_open" is called. It sends subscription channel as JSON. Then broadcasting starts.

The contents can be got with call back function "on_message" as JSON.

Subscription channel

This is determined by what kind of information you want and what kind of board(spot trading, FX, futures) you select. Ex. Spot trading and snap shot of board infomation, lightning_board_snapshot_BTC_JPY

For detail, see Bitflyer official page https://lightning.bitflyer.jp/docs?lang=en

Lisence

Public Domain. You can change, destribute and use commercial freely, at your own risk.

About

Sample program of call Bitflyer Realtime API [JSON-RPC 2.0] over Websocket by Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages