Skip to content

Instantly share code, notes, and snippets.

@koheso
Last active January 20, 2018 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koheso/ca6fd19bcbfd889b12df969c593534f6 to your computer and use it in GitHub Desktop.
Save koheso/ca6fd19bcbfd889b12df969c593534f6 to your computer and use it in GitHub Desktop.
bitbankでTicker情報の取得
# -*- coding: utf-8 -*-
import python_bitbankcc
pub = python_bitbankcc.public()
value = pub.get_ticker(
'xrp_jpy' # ペア
)
print(value)
#現在の売り注文の最安値
print('sell:' + value['sell'])
#現在の買い注文の最高値
print('buy:' + value['buy'])
#過去24時間の最高値取引価格
print('high:' + value['high'])
#過去24時間の最安値取引価格
print('low:' + value['low'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment