Skip to content

Commit

Permalink
Remove bittrex, update bit.com
Browse files Browse the repository at this point in the history
  • Loading branch information
bmoscon committed Jan 7, 2024
1 parent 39fa1ae commit 345d344
Show file tree
Hide file tree
Showing 51 changed files with 52 additions and 468 deletions.
4 changes: 1 addition & 3 deletions cryptofeed/exchanges/__init__.py
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.
Expand All @@ -23,7 +23,6 @@
from .bithumb import Bithumb
from .bitmex import Bitmex
from .bitstamp import Bitstamp
from .bittrex import Bittrex
from .blockchain import Blockchain
from .bybit import Bybit
from .coinbase import Coinbase
Expand Down Expand Up @@ -67,7 +66,6 @@
BITHUMB: Bithumb,
BITMEX: Bitmex,
BITSTAMP: Bitstamp,
BITTREX: Bittrex,
BLOCKCHAIN: Blockchain,
BYBIT: Bybit,
COINBASE: Coinbase,
Expand Down
2 changes: 1 addition & 1 deletion cryptofeed/exchanges/ascendex.py
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.
Expand Down
2 changes: 1 addition & 1 deletion cryptofeed/exchanges/bequant.py
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.
Expand Down
2 changes: 1 addition & 1 deletion cryptofeed/exchanges/binance.py
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.
Expand Down
2 changes: 1 addition & 1 deletion cryptofeed/exchanges/binance_delivery.py
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.
Expand Down
2 changes: 1 addition & 1 deletion cryptofeed/exchanges/binance_futures.py
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.
Expand Down
2 changes: 1 addition & 1 deletion cryptofeed/exchanges/binance_tr.py
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.
Expand Down
2 changes: 1 addition & 1 deletion cryptofeed/exchanges/binance_us.py
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.
Expand Down
5 changes: 2 additions & 3 deletions cryptofeed/exchanges/bitdotcom.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class BitDotCom(Feed):
]
rest_endpoints = [
RestEndpoint('https://spot-api.bit.com', instrument_filter=('TYPE', (SPOT,)), sandbox='https://betaspot-api.bitexch.dev', routes=Routes('/spot/v1/instruments', authentication='/spot/v1/ws/auth')),
RestEndpoint('https://api.bit.com', instrument_filter=('TYPE', (OPTION, FUTURES, PERPETUAL)), sandbox='https://betaapi.bitexch.dev', routes=Routes('/v1/instruments?currency={}&active=true', currencies='/v1/currencies', authentication='/v1/ws/auth'))
RestEndpoint('https://api.bit.com', instrument_filter=('TYPE', (OPTION, FUTURES, PERPETUAL)), sandbox='https://betaapi.bitexch.dev', routes=Routes('/linear/v1/instruments?currency={}&active=true', currencies=True, authentication='/v1/ws/auth'))
]

websocket_channels = {
Expand All @@ -53,8 +53,7 @@ def __init__(self, *args, **kwargs):
@classmethod
def _symbol_endpoint_prepare(cls, ep: RestEndpoint) -> Union[List[str], str]:
if ep.routes.currencies:
ret = cls.http_sync.read(ep.route('currencies'), json=True, uuid=cls.id)
return [ep.route('instruments').format(currency) for currency in ret['data']['currencies']]
return [ep.route('instruments').format(currency) for currency in ('USD', 'USDT')]
return ep.route('instruments')

@classmethod
Expand Down
2 changes: 1 addition & 1 deletion cryptofeed/exchanges/bitfinex.py
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.
Expand Down
2 changes: 1 addition & 1 deletion cryptofeed/exchanges/bitflyer.py
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.
Expand Down
2 changes: 1 addition & 1 deletion cryptofeed/exchanges/bitget.py
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.
Expand Down
2 changes: 1 addition & 1 deletion cryptofeed/exchanges/bithumb.py
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.
Expand Down
2 changes: 1 addition & 1 deletion cryptofeed/exchanges/bitmex.py
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.
Expand Down
2 changes: 1 addition & 1 deletion cryptofeed/exchanges/bitstamp.py
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.
Expand Down
Loading

0 comments on commit 345d344

Please sign in to comment.