Beispiel #1
0
def main():
    f = FeedHandler()
    f.add_feed(
        Bitmex(channels=[TRADES, FUNDING],
               pairs=['XBTUSD'],
               callbacks={
                   TRADES: TradeArctic('cryptofeed-test'),
                   FUNDING: FundingArctic('cryptofeed-test')
               }))
    f.add_feed(
        Bitfinex(channels=[TRADES],
                 pairs=['BTC-USD'],
                 callbacks={TRADES: TradeArctic('cryptofeed-test')}))

    f.run()
Beispiel #2
0
def main():
    f = FeedHandler()
    f.add_feed(
        Bitmex(channels=[TRADES, FUNDING],
               symbols=['BTC-USD-PERP'],
               callbacks={
                   TRADES: TradeArctic('cryptofeed-test'),
                   FUNDING: FundingArctic('cryptofeed-test')
               }))
    f.add_feed(
        Bitfinex(channels=[TRADES],
                 symbols=['BTC-USD'],
                 callbacks={TRADES: TradeArctic('cryptofeed-test')}))
    f.add_feed(
        Coinbase(channels=[TICKER],
                 symbols=['BTC-USD'],
                 callbacks={TICKER: TickerArctic('cryptofeed-test')}))
    f.run()