-
-
Notifications
You must be signed in to change notification settings - Fork 702
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
35 additions
and
36 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2017-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2017-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
@@ -8,7 +8,7 @@ | |
|
||
from cryptofeed import FeedHandler | ||
from cryptofeed.defines import CANDLES, BID, ASK, BLOCKCHAIN, FUNDING, GEMINI, L2_BOOK, L3_BOOK, LIQUIDATIONS, OPEN_INTEREST, PERPETUAL, TICKER, TRADES, INDEX | ||
from cryptofeed.exchanges import (Binance, BinanceUS, BinanceFutures, Bitfinex, Bitflyer, AscendEX, Bitmex, Bitstamp, Bittrex, Coinbase, Gateio, | ||
from cryptofeed.exchanges import (Binance, BinanceUS, BinanceFutures, Bitfinex, Bitflyer, AscendEX, Bitmex, Bitstamp, Coinbase, Gateio, | ||
HitBTC, Huobi, HuobiDM, HuobiSwap, Kraken, OKCoin, OKX, Poloniex, Bybit, KuCoin, Bequant, Upbit, Probit) | ||
from cryptofeed.exchanges.bitdotcom import BitDotCom | ||
from cryptofeed.exchanges.bitget import Bitget | ||
|
@@ -94,7 +94,6 @@ def main(): | |
f.add_feed(Bithumb(symbols=['BTC-KRW'], channels=[TRADES], callbacks={TRADES: trade})) | ||
f.add_feed(Bitmex(timeout=5000, symbols=Bitmex.symbols(), channels=[LIQUIDATIONS], callbacks={LIQUIDATIONS: liquidations, OPEN_INTEREST: oi, FUNDING: funding})) | ||
f.add_feed(Bitstamp(channels=[L2_BOOK, TRADES], symbols=['BTC-USD'], callbacks={L2_BOOK: book, TRADES: trade})) | ||
f.add_feed(Bittrex(subscription={L2_BOOK: ['BTC-USDT'], CANDLES: ['BTC-USDT', 'ETH-USDT'], TRADES: ['ETH-USDT', 'BTC-USDT'], TICKER: ['ETH-USDT']}, callbacks={CANDLES: candle_callback, L2_BOOK: book, TICKER: ticker, TRADES: trade})) | ||
f.add_feed(BLOCKCHAIN, subscription={L2_BOOK: ['BTC-USD'], TRADES: Blockchain.symbols()}, callbacks={L2_BOOK: book, TRADES: trade}) | ||
f.add_feed(Bybit(symbols=['BTC-USDT-PERP', 'BTC-USD-PERP'], channels=[INDEX, FUNDING, OPEN_INTEREST], callbacks={OPEN_INTEREST: oi, INDEX: index, FUNDING: funding})) | ||
f.add_feed(Bybit(candle_closed_only=True, symbols=['BTC-USDT-PERP', 'BTC-USD-PERP'], channels=[CANDLES, TRADES, L2_BOOK], callbacks={CANDLES: candle_callback, TRADES: trade, L2_BOOK: book})) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2018-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2018-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2017-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2017-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2018-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2018-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2017-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2017-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2017-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2017-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2018-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2018-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2017-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2017-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2017-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2017-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2018-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2018-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2018-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2018-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
@@ -13,8 +13,8 @@ | |
|
||
INFLUX_ADDR = 'http://localhost:8086' | ||
ORG = 'cryptofeed' | ||
BUCKET = 'cryptofeed' | ||
TOKEN = 'XXXXXXXXXX' | ||
BUCKET = 'crypto' | ||
TOKEN = 'TOKEN' | ||
|
||
|
||
def main(): | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2018-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2018-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2017-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2017-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2017-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2017-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2017-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2017-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2017-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2017-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2017-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2017-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2017-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2017-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2017-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2017-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2018-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2018-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2018-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2018-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2017-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2017-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2017-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2017-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2017-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2017-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2018-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2018-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2017-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2017-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2018-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2018-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2017-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2017-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2018-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2018-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2018-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2018-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2018-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2018-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
''' | ||
Copyright (C) 2018-2023 Bryant Moscon - [email protected] | ||
Copyright (C) 2018-2024 Bryant Moscon - [email protected] | ||
Please see the LICENSE file for the terms and conditions | ||
associated with this software. | ||
|