Last active
January 20, 2018 06:24
-
-
Save koheso/ca6fd19bcbfd889b12df969c593534f6 to your computer and use it in GitHub Desktop.
bitbankでTicker情報の取得
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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