Skip to content

Commit f65fd38

Browse files
committed
Add ChangeNow
Signed-off-by: Paul <paul@drakkar.software>
1 parent 15dd525 commit f65fd38

16 files changed

Lines changed: 2267 additions & 1 deletion

File tree

python/ccxt/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@
129129
from ccxt.bybit import bybit # noqa: F401
130130
from ccxt.bydfi import bydfi # noqa: F401
131131
from ccxt.cex import cex # noqa: F401
132+
from ccxt.changenow import changenow # noqa: F401
132133
from ccxt.coinbase import coinbase # noqa: F401
133134
from ccxt.coinbaseadvanced import coinbaseadvanced # noqa: F401
134135
from ccxt.coinbaseexchange import coinbaseexchange # noqa: F401
@@ -189,6 +190,7 @@
189190
from ccxt.ob_bitso import ob_bitso # noqa: F401
190191
from ccxt.ob_bitstamp import ob_bitstamp # noqa: F401
191192
from ccxt.ob_bybit import ob_bybit # noqa: F401
193+
from ccxt.ob_changenow import ob_changenow # noqa: F401
192194
from ccxt.ob_coinbase import ob_coinbase # noqa: F401
193195
from ccxt.ob_coinex import ob_coinex # noqa: F401
194196
from ccxt.ob_cryptocom import ob_cryptocom # noqa: F401
@@ -276,6 +278,7 @@
276278
'bybit',
277279
'bydfi',
278280
'cex',
281+
'changenow',
279282
'coinbase',
280283
'coinbaseadvanced',
281284
'coinbaseexchange',
@@ -336,6 +339,7 @@
336339
'ob_bitso',
337340
'ob_bitstamp',
338341
'ob_bybit',
342+
'ob_changenow',
339343
'ob_coinbase',
340344
'ob_coinex',
341345
'ob_cryptocom',

python/ccxt/abstract/changenow.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from ccxt.base.types import Entry
2+
3+
4+
class ImplicitAPI:
5+
public_get_currencies = publicGetCurrencies = Entry('currencies', 'public', 'GET', {})
6+
public_get_currencies_to_ticker = publicGetCurrenciesToTicker = Entry('currencies-to/{ticker}', 'public', 'GET', {})
7+
public_get_min_amount_from_to = publicGetMinAmountFromTo = Entry('min-amount/{from}_{to}', 'public', 'GET', {})
8+
public_get_exchange_amount_amount_from_to = publicGetExchangeAmountAmountFromTo = Entry('exchange-amount/{amount}/{from}_{to}', 'public', 'GET', {})
9+
public_get_exchange_amount_fixed_rate_amount_from_to = publicGetExchangeAmountFixedRateAmountFromTo = Entry('exchange-amount/fixed-rate/{amount}/{from}_{to}', 'public', 'GET', {})
10+
public_get_market_info_available_pairs = publicGetMarketInfoAvailablePairs = Entry('market-info/available-pairs', 'public', 'GET', {})
11+
private_get_transactions_apikey = privateGetTransactionsApiKey = Entry('transactions/{apiKey}', 'private', 'GET', {})
12+
private_get_transactions_id_apikey = privateGetTransactionsIdApiKey = Entry('transactions/{id}/{apiKey}', 'private', 'GET', {})
13+
private_get_market_info_fixed_rate_apikey = privateGetMarketInfoFixedRateApiKey = Entry('market-info/fixed-rate/{apiKey}', 'private', 'GET', {})
14+
private_post_transactions_apikey = privatePostTransactionsApiKey = Entry('transactions/{apiKey}', 'private', 'POST', {})
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from ccxt.base.types import Entry
2+
3+
4+
class ImplicitAPI:
5+
public_get_currencies = publicGetCurrencies = Entry('currencies', 'public', 'GET', {})
6+
public_get_currencies_to_ticker = publicGetCurrenciesToTicker = Entry('currencies-to/{ticker}', 'public', 'GET', {})
7+
public_get_min_amount_from_to = publicGetMinAmountFromTo = Entry('min-amount/{from}_{to}', 'public', 'GET', {})
8+
public_get_exchange_amount_amount_from_to = publicGetExchangeAmountAmountFromTo = Entry('exchange-amount/{amount}/{from}_{to}', 'public', 'GET', {})
9+
public_get_exchange_amount_fixed_rate_amount_from_to = publicGetExchangeAmountFixedRateAmountFromTo = Entry('exchange-amount/fixed-rate/{amount}/{from}_{to}', 'public', 'GET', {})
10+
public_get_market_info_available_pairs = publicGetMarketInfoAvailablePairs = Entry('market-info/available-pairs', 'public', 'GET', {})
11+
private_get_transactions_apikey = privateGetTransactionsApiKey = Entry('transactions/{apiKey}', 'private', 'GET', {})
12+
private_get_transactions_id_apikey = privateGetTransactionsIdApiKey = Entry('transactions/{id}/{apiKey}', 'private', 'GET', {})
13+
private_get_market_info_fixed_rate_apikey = privateGetMarketInfoFixedRateApiKey = Entry('market-info/fixed-rate/{apiKey}', 'private', 'GET', {})
14+
private_post_transactions_apikey = privatePostTransactionsApiKey = Entry('transactions/{apiKey}', 'private', 'POST', {})

python/ccxt/async_support/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
from ccxt.async_support.bybit import bybit # noqa: F401
110110
from ccxt.async_support.bydfi import bydfi # noqa: F401
111111
from ccxt.async_support.cex import cex # noqa: F401
112+
from ccxt.async_support.changenow import changenow # noqa: F401
112113
from ccxt.async_support.coinbase import coinbase # noqa: F401
113114
from ccxt.async_support.coinbaseadvanced import coinbaseadvanced # noqa: F401
114115
from ccxt.async_support.coinbaseexchange import coinbaseexchange # noqa: F401
@@ -169,6 +170,7 @@
169170
from ccxt.async_support.ob_bitso import ob_bitso # noqa: F401
170171
from ccxt.async_support.ob_bitstamp import ob_bitstamp # noqa: F401
171172
from ccxt.async_support.ob_bybit import ob_bybit # noqa: F401
173+
from ccxt.async_support.ob_changenow import ob_changenow # noqa: F401
172174
from ccxt.async_support.ob_coinbase import ob_coinbase # noqa: F401
173175
from ccxt.async_support.ob_coinex import ob_coinex # noqa: F401
174176
from ccxt.async_support.ob_cryptocom import ob_cryptocom # noqa: F401
@@ -256,6 +258,7 @@
256258
'bybit',
257259
'bydfi',
258260
'cex',
261+
'changenow',
259262
'coinbase',
260263
'coinbaseadvanced',
261264
'coinbaseexchange',
@@ -316,6 +319,7 @@
316319
'ob_bitso',
317320
'ob_bitstamp',
318321
'ob_bybit',
322+
'ob_changenow',
319323
'ob_coinbase',
320324
'ob_coinex',
321325
'ob_cryptocom',

0 commit comments

Comments
 (0)