Skip to content

Commit

Permalink
adding usdt pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
cj4c0b1 authored and peshay committed Aug 25, 2023
1 parent f8361f1 commit 9acf46f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions btcde.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ def create_url(self, uri):


TRADING_PAIRS = ['btceur', 'bcheur', 'etheur', 'btgeur', 'bsveur', 'ltceur',
'iotabtc', 'dashbtc', 'gntbtc', 'ltcbtc', 'xrpeur']
'iotabtc', 'dashbtc', 'gntbtc', 'ltcbtc', 'xrpeur', 'usdteur', 'btcusdt', 'ethusdt']
ORDER_TYPES = ['buy', 'sell']
CURRENCIES = ['btc', 'bch', 'eth', 'btg', 'bsv', 'ltc',
'iota', 'dash', 'gnt', 'xrp']
'iota', 'dash', 'gnt', 'xrp', 'usdt']
BANK_SEATS = ['AT', 'BE', 'BG', 'CH', 'CY', 'CZ',
'DE', 'DK', 'EE', 'ES', 'FI', 'FR',
'GB', 'GR', 'HR', 'HU', 'IE', 'IS',
Expand Down
7 changes: 5 additions & 2 deletions tests/test_btcde_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
import json
import btcde
from decimal import Decimal
from mock import patch
from unittest.mock import patch


from urllib.parse import urlencode

Expand Down Expand Up @@ -489,7 +492,7 @@ def test_allowed_pairs(self, mock_logger, m):
'''Test the allowed trading pairs.'''
i = 0
for pair in ['btceur', 'bcheur', 'etheur', 'btgeur', 'bsveur', 'ltceur',
'iotabtc', 'dashbtc', 'gntbtc', 'ltcbtc', 'xrpeur' ]:
'iotabtc', 'dashbtc', 'gntbtc', 'ltcbtc', 'xrpeur', 'usdteur', 'btcusdt', 'ethusdt' ]:
params = {'trading_pair': pair}
base_url = f'https://api.bitcoin.de/v4/{pair}/rates'
response = self.sampleData('showRates')
Expand All @@ -505,7 +508,7 @@ def test_allowed_currency(self, mock_logger, m):
'''Test the allowed currencies.'''
i = 0
for curr in ['btc', 'bch', 'eth', 'btg', 'bsv', 'ltc',
'iota', 'dash', 'gnt', 'xrp']:
'iota', 'dash', 'gnt', 'xrp', 'usdt']:
base_url = f'https://api.bitcoin.de/v4/{curr}/account/ledger'
url_args = '?currency={}'.format(curr)
response = self.sampleData('showAccountLedger')
Expand Down

0 comments on commit 9acf46f

Please sign in to comment.