Ejemplo n.º 1
0
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)
Ejemplo n.º 4
0
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)
Ejemplo n.º 5
0
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)
Ejemplo n.º 6
0
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)
Ejemplo n.º 8
0
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)
Ejemplo n.º 10
0
def init():
    clientId = "your-client-id-goes-here"
    clientSecret = "your-client-secret-goes-here"
    initialise(clientId, clientSecret)
Ejemplo n.º 11
0
def init():
    clientId = "Enter API client Id here"
    clientSecret = "Enter API secret here"
    username = "******"
    password = "******"
    initialise(clientId, clientSecret, username, password)
Ejemplo n.º 12
0
def init():
  with open('./../secret.txt', 'r') as f:
    clientId = f.readline().strip()
    clientSecret = f.readline().strip()
  f.close()
  initialise(clientId, clientSecret)
Ejemplo n.º 13
0
def init():
    clientId = "your-client-id-goes-here"
    clientSecret = "your-client-secret-goes-here"
    emitter = initialise(clientId, clientSecret)
    emitter.on('SPREAD', process_spread)
Ejemplo n.º 14
0
def init():
    clientId = "Your-ClientId-Goes-Here"
    clientSecret = "Your-Client-Secret-Goes-Here"
    initialise(clientId, clientSecret)
Ejemplo n.º 15
0
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)