def init(): clientId = "Enter API client Id here" clientSecret = "Enter API secret here" username = "******" password = "******" emitter = initialise(clientId, clientSecret, username, password) emitter.on('TICKS', process_ticks)
def init(): clientId = "Enter API client Id here" clientSecret = "Enter API secret here" username = "******" password = "******" emitter = initialise(clientId, clientSecret, username, password) emitter.on('GLOBAL_ORDERBOOK', process_global_orderbook)
def init(): clientId = "your-client-id-goes-here" clientSecret = "your-client-secret-goes-here" emitter = initialise(clientId, clientSecret) emitter.on('LIVE_LIQUIDITY', process_liquidity_update) emitter.on('LIVE_LIQUIDITY_STATS', process_liquidity_stats_update) pd.set_option('display.float_format', lambda x: '%.5f' % x)
def init(): with open('./../secret.txt', 'r') as f: clientId = f.readline().strip() clientSecret = f.readline().strip() f.close() emitter = initialise(clientId, clientSecret) emitter.on('GLOBAL_ORDERBOOK', process_global_orderbook)
def init(): with open('./../secret.txt', 'r') as f: clientId = f.readline().strip() clientSecret = f.readline().strip() f.close() emitter = initialise(clientId, clientSecret) emitter.on('SPREAD', process_spread)
def init(): clientId = "your-client-id-goes-here" clientSecret = "your-client-secret-goes-here" initialise(clientId, clientSecret) exchanges = fetch_exchanges_for_pair('eth', 'usdc') assets = fetch_reference_data("/reference/assets") supportedAssets = json_normalize(assets) print(supportedAssets) markets = fetch_reference_data("/reference/markets") supportedMarkets = json_normalize(markets) print(supportedMarkets) exchanges = fetch_reference_data("/reference/exchanges") supportedExchanges = json_normalize(exchanges) print(supportedExchanges)
def init(): clientId = "Enter API client Id here" clientSecret = "Enter API secret here" username = "******" password = "******" emitter = initialise(clientId, clientSecret, username, password) emitter.on('LIVE_LIQUIDITY', process_liquidity_update) emitter.on('LIVE_LIQUIDITY_STATS', process_liquidity_stats_update) pd.set_option('display.float_format', lambda x: '%.5f' % x)
def init(): with open('./../secret.txt', 'r') as f: clientId = f.readline().strip() clientSecret = f.readline().strip() f.close() emitter = initialise(clientId, clientSecret) emitter.on('LIVE_LIQUIDITY', process_liquidity_update) emitter.on('LIVE_LIQUIDITY_STATS', process_liquidity_stats_update) pd.set_option('display.float_format', lambda x: '%.5f' % x)
def init(): with open('./../secret.txt', 'r') as f: clientId = f.readline().strip() clientSecret = f.readline().strip() f.close() initialise(clientId, clientSecret) exchanges = fetch_exchanges_for_pair('eth', 'usdc') assets = fetch_reference_data("/reference/assets") supportedAssets = json_normalize(assets) print(supportedAssets) markets = fetch_reference_data("/reference/markets") supportedMarkets = json_normalize(markets) print(supportedMarkets) exchanges = fetch_reference_data("/reference/exchanges") supportedExchanges = json_normalize(exchanges) print(supportedExchanges)
def init(): clientId = "your-client-id-goes-here" clientSecret = "your-client-secret-goes-here" initialise(clientId, clientSecret)
def init(): clientId = "Enter API client Id here" clientSecret = "Enter API secret here" username = "******" password = "******" initialise(clientId, clientSecret, username, password)
def init(): with open('./../secret.txt', 'r') as f: clientId = f.readline().strip() clientSecret = f.readline().strip() f.close() initialise(clientId, clientSecret)
def init(): clientId = "your-client-id-goes-here" clientSecret = "your-client-secret-goes-here" emitter = initialise(clientId, clientSecret) emitter.on('SPREAD', process_spread)
def init(): clientId = "Your-ClientId-Goes-Here" clientSecret = "Your-Client-Secret-Goes-Here" initialise(clientId, clientSecret)
def init(): clientId = "your-client-id-goes-here" clientSecret = "your-client-secret-goes-here" emitter = initialise(clientId, clientSecret) emitter.on('GLOBAL_ORDERBOOK', process_global_orderbook)