2017-12-10 12:52:43 +00:00
|
|
|
# encoding: utf-8
|
|
|
|
|
2018-05-07 17:25:06 +00:00
|
|
|
from __future__ import absolute_import
|
|
|
|
from .vncoincheck import *
|
2017-12-10 12:52:43 +00:00
|
|
|
|
|
|
|
def test():
|
|
|
|
|
|
|
|
api = DataApiSocket()
|
|
|
|
api.connect("wss://ws-api.coincheck.com")
|
|
|
|
|
|
|
|
sleep(2)
|
|
|
|
api.sendOrderbookRequest()
|
|
|
|
|
|
|
|
api.sendTradesRequest()
|
|
|
|
|
|
|
|
raw_input()
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
test()
|