Repository navigation
Expand file tree
/
Copy path__init__.py
More file actions
319 lines (307 loc) · 16.4 KB
/
Copy path__init__.py
File metadata and controls
319 lines (307 loc) · 16.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
# -*- coding: utf-8 -*-
"""CCXT: CryptoCurrency eXchange Trading Library"""
# MIT License
# Copyright (c) 2017 Igor Kroitor
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# ----------------------------------------------------------------------------
__version__ = '4.4.39'
# ----------------------------------------------------------------------------
from ccxt.base.exchange import Exchange # noqa: F401
from ccxt.base.precise import Precise # noqa: F401
from ccxt.base.decimal_to_precision import decimal_to_precision # noqa: F401
from ccxt.base.decimal_to_precision import TRUNCATE # noqa: F401
from ccxt.base.decimal_to_precision import ROUND # noqa: F401
from ccxt.base.decimal_to_precision import ROUND_UP # noqa: F401
from ccxt.base.decimal_to_precision import ROUND_DOWN # noqa: F401
from ccxt.base.decimal_to_precision import DECIMAL_PLACES # noqa: F401
from ccxt.base.decimal_to_precision import SIGNIFICANT_DIGITS # noqa: F401
from ccxt.base.decimal_to_precision import TICK_SIZE # noqa: F401
from ccxt.base.decimal_to_precision import NO_PADDING # noqa: F401
from ccxt.base.decimal_to_precision import PAD_WITH_ZERO # noqa: F401
from ccxt.base import errors
from ccxt.base.errors import BaseError # noqa: F401
from ccxt.base.errors import ExchangeError # noqa: F401
from ccxt.base.errors import AuthenticationError # noqa: F401
from ccxt.base.errors import PermissionDenied # noqa: F401
from ccxt.base.errors import AccountNotEnabled # noqa: F401
from ccxt.base.errors import AccountSuspended # noqa: F401
from ccxt.base.errors import ArgumentsRequired # noqa: F401
from ccxt.base.errors import BadRequest # noqa: F401
from ccxt.base.errors import BadSymbol # noqa: F401
from ccxt.base.errors import OperationRejected # noqa: F401
from ccxt.base.errors import NoChange # noqa: F401
from ccxt.base.errors import MarginModeAlreadySet # noqa: F401
from ccxt.base.errors import MarketClosed # noqa: F401
from ccxt.base.errors import ManualInteractionNeeded # noqa: F401
from ccxt.base.errors import InsufficientFunds # noqa: F401
from ccxt.base.errors import InvalidAddress # noqa: F401
from ccxt.base.errors import AddressPending # noqa: F401
from ccxt.base.errors import InvalidOrder # noqa: F401
from ccxt.base.errors import OrderNotFound # noqa: F401
from ccxt.base.errors import OrderNotCached # noqa: F401
from ccxt.base.errors import OrderImmediatelyFillable # noqa: F401
from ccxt.base.errors import OrderNotFillable # noqa: F401
from ccxt.base.errors import DuplicateOrderId # noqa: F401
from ccxt.base.errors import ContractUnavailable # noqa: F401
from ccxt.base.errors import NotSupported # noqa: F401
from ccxt.base.errors import InvalidProxySettings # noqa: F401
from ccxt.base.errors import ExchangeClosedByUser # noqa: F401
from ccxt.base.errors import OperationFailed # noqa: F401
from ccxt.base.errors import NetworkError # noqa: F401
from ccxt.base.errors import DDoSProtection # noqa: F401
from ccxt.base.errors import RateLimitExceeded # noqa: F401
from ccxt.base.errors import ExchangeNotAvailable # noqa: F401
from ccxt.base.errors import OnMaintenance # noqa: F401
from ccxt.base.errors import InvalidNonce # noqa: F401
from ccxt.base.errors import ChecksumError # noqa: F401
from ccxt.base.errors import RequestTimeout # noqa: F401
from ccxt.base.errors import BadResponse # noqa: F401
from ccxt.base.errors import NullResponse # noqa: F401
from ccxt.base.errors import CancelPending # noqa: F401
from ccxt.base.errors import UnsubscribeError # noqa: F401
from ccxt.base.errors import error_hierarchy # noqa: F401
from ccxt.ace import ace # noqa: F401
from ccxt.alpaca import alpaca # noqa: F401
from ccxt.ascendex import ascendex # noqa: F401
from ccxt.bequant import bequant # noqa: F401
from ccxt.bigone import bigone # noqa: F401
from ccxt.binance import binance # noqa: F401
from ccxt.binancecoinm import binancecoinm # noqa: F401
from ccxt.binanceus import binanceus # noqa: F401
from ccxt.binanceusdm import binanceusdm # noqa: F401
from ccxt.bingx import bingx # noqa: F401
from ccxt.bit2c import bit2c # noqa: F401
from ccxt.bitbank import bitbank # noqa: F401
from ccxt.bitbns import bitbns # noqa: F401
from ccxt.bitcoincom import bitcoincom # noqa: F401
from ccxt.bitfinex import bitfinex # noqa: F401
from ccxt.bitfinex1 import bitfinex1 # noqa: F401
from ccxt.bitflyer import bitflyer # noqa: F401
from ccxt.bitget import bitget # noqa: F401
from ccxt.bithumb import bithumb # noqa: F401
from ccxt.bitmart import bitmart # noqa: F401
from ccxt.bitmex import bitmex # noqa: F401
from ccxt.bitopro import bitopro # noqa: F401
from ccxt.bitpanda import bitpanda # noqa: F401
from ccxt.bitrue import bitrue # noqa: F401
from ccxt.bitso import bitso # noqa: F401
from ccxt.bitstamp import bitstamp # noqa: F401
from ccxt.bitteam import bitteam # noqa: F401
from ccxt.bitvavo import bitvavo # noqa: F401
from ccxt.bl3p import bl3p # noqa: F401
from ccxt.blockchaincom import blockchaincom # noqa: F401
from ccxt.blofin import blofin # noqa: F401
from ccxt.btcalpha import btcalpha # noqa: F401
from ccxt.btcbox import btcbox # noqa: F401
from ccxt.btcmarkets import btcmarkets # noqa: F401
from ccxt.btcturk import btcturk # noqa: F401
from ccxt.bybit import bybit # noqa: F401
from ccxt.cex import cex # noqa: F401
from ccxt.coinbase import coinbase # noqa: F401
from ccxt.coinbaseadvanced import coinbaseadvanced # noqa: F401
from ccxt.coinbaseexchange import coinbaseexchange # noqa: F401
from ccxt.coinbaseinternational import coinbaseinternational # noqa: F401
from ccxt.coincatch import coincatch # noqa: F401
from ccxt.coincheck import coincheck # noqa: F401
from ccxt.coinex import coinex # noqa: F401
from ccxt.coinlist import coinlist # noqa: F401
from ccxt.coinmate import coinmate # noqa: F401
from ccxt.coinmetro import coinmetro # noqa: F401
from ccxt.coinone import coinone # noqa: F401
from ccxt.coinsph import coinsph # noqa: F401
from ccxt.coinspot import coinspot # noqa: F401
from ccxt.cryptocom import cryptocom # noqa: F401
from ccxt.currencycom import currencycom # noqa: F401
from ccxt.defx import defx # noqa: F401
from ccxt.delta import delta # noqa: F401
from ccxt.deribit import deribit # noqa: F401
from ccxt.digifinex import digifinex # noqa: F401
from ccxt.ellipx import ellipx # noqa: F401
from ccxt.exmo import exmo # noqa: F401
from ccxt.fmfwio import fmfwio # noqa: F401
from ccxt.gate import gate # noqa: F401
from ccxt.gateio import gateio # noqa: F401
from ccxt.gemini import gemini # noqa: F401
from ccxt.hashkey import hashkey # noqa: F401
from ccxt.hitbtc import hitbtc # noqa: F401
from ccxt.hollaex import hollaex # noqa: F401
from ccxt.htx import htx # noqa: F401
from ccxt.huobi import huobi # noqa: F401
from ccxt.huobijp import huobijp # noqa: F401
from ccxt.hyperliquid import hyperliquid # noqa: F401
from ccxt.idex import idex # noqa: F401
from ccxt.independentreserve import independentreserve # noqa: F401
from ccxt.indodax import indodax # noqa: F401
from ccxt.kraken import kraken # noqa: F401
from ccxt.krakenfutures import krakenfutures # noqa: F401
from ccxt.kucoin import kucoin # noqa: F401
from ccxt.kucoinfutures import kucoinfutures # noqa: F401
from ccxt.kuna import kuna # noqa: F401
from ccxt.latoken import latoken # noqa: F401
from ccxt.lbank import lbank # noqa: F401
from ccxt.luno import luno # noqa: F401
from ccxt.lykke import lykke # noqa: F401
from ccxt.mercado import mercado # noqa: F401
from ccxt.mexc import mexc # noqa: F401
from ccxt.ndax import ndax # noqa: F401
from ccxt.novadax import novadax # noqa: F401
from ccxt.oceanex import oceanex # noqa: F401
from ccxt.okcoin import okcoin # noqa: F401
from ccxt.okx import okx # noqa: F401
from ccxt.onetrading import onetrading # noqa: F401
from ccxt.oxfun import oxfun # noqa: F401
from ccxt.p2b import p2b # noqa: F401
from ccxt.paradex import paradex # noqa: F401
from ccxt.paymium import paymium # noqa: F401
from ccxt.phemex import phemex # noqa: F401
from ccxt.poloniex import poloniex # noqa: F401
from ccxt.poloniexfutures import poloniexfutures # noqa: F401
from ccxt.probit import probit # noqa: F401
from ccxt.timex import timex # noqa: F401
from ccxt.tokocrypto import tokocrypto # noqa: F401
from ccxt.tradeogre import tradeogre # noqa: F401
from ccxt.upbit import upbit # noqa: F401
from ccxt.vertex import vertex # noqa: F401
from ccxt.wavesexchange import wavesexchange # noqa: F401
from ccxt.wazirx import wazirx # noqa: F401
from ccxt.whitebit import whitebit # noqa: F401
from ccxt.woo import woo # noqa: F401
from ccxt.woofipro import woofipro # noqa: F401
from ccxt.xt import xt # noqa: F401
from ccxt.yobit import yobit # noqa: F401
from ccxt.zaif import zaif # noqa: F401
from ccxt.zonda import zonda # noqa: F401
exchanges = [
'ace',
'alpaca',
'ascendex',
'bequant',
'bigone',
'binance',
'binancecoinm',
'binanceus',
'binanceusdm',
'bingx',
'bit2c',
'bitbank',
'bitbns',
'bitcoincom',
'bitfinex',
'bitfinex1',
'bitflyer',
'bitget',
'bithumb',
'bitmart',
'bitmex',
'bitopro',
'bitpanda',
'bitrue',
'bitso',
'bitstamp',
'bitteam',
'bitvavo',
'bl3p',
'blockchaincom',
'blofin',
'btcalpha',
'btcbox',
'btcmarkets',
'btcturk',
'bybit',
'cex',
'coinbase',
'coinbaseadvanced',
'coinbaseexchange',
'coinbaseinternational',
'coincatch',
'coincheck',
'coinex',
'coinlist',
'coinmate',
'coinmetro',
'coinone',
'coinsph',
'coinspot',
'cryptocom',
'currencycom',
'defx',
'delta',
'deribit',
'digifinex',
'ellipx',
'exmo',
'fmfwio',
'gate',
'gateio',
'gemini',
'hashkey',
'hitbtc',
'hollaex',
'htx',
'huobi',
'huobijp',
'hyperliquid',
'idex',
'independentreserve',
'indodax',
'kraken',
'krakenfutures',
'kucoin',
'kucoinfutures',
'kuna',
'latoken',
'lbank',
'luno',
'lykke',
'mercado',
'mexc',
'ndax',
'novadax',
'oceanex',
'okcoin',
'okx',
'onetrading',
'oxfun',
'p2b',
'paradex',
'paymium',
'phemex',
'poloniex',
'poloniexfutures',
'probit',
'timex',
'tokocrypto',
'tradeogre',
'upbit',
'vertex',
'wavesexchange',
'wazirx',
'whitebit',
'woo',
'woofipro',
'xt',
'yobit',
'zaif',
'zonda',
]
base = [
'Exchange',
'Precise',
'exchanges',
'decimal_to_precision',
]
__all__ = base + errors.__all__ + exchanges