coinex-api 0.0.16__py3-none-any.whl → 0.0.18__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,425 @@
1
+ Metadata-Version: 2.4
2
+ Name: coinex-api
3
+ Version: 0.0.18
4
+ Summary: coinex crypto exchange api client
5
+ Project-URL: Homepage, https://github.com/ccxt/ccxt
6
+ Project-URL: Issues, https://github.com/ccxt/ccxt
7
+ Author-email: CCXT <info@ccxt.trade>
8
+ License: MIT
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Intended Audience :: Financial and Insurance Industry
11
+ Classifier: Intended Audience :: Information Technology
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Topic :: Office/Business :: Financial :: Investment
16
+ Classifier: Topic :: Software Development :: Build Tools
17
+ Requires-Python: >=3.8
18
+ Description-Content-Type: text/markdown
19
+
20
+ # coinex-python
21
+ Python SDK (sync and async) for Coinex cryptocurrency exchange with Rest and WS capabilities.
22
+
23
+ You can check the SDK docs here: [SDK](https://docs.ccxt.com/#/exchanges/coinex)
24
+ You can check Coinex's docs here: [Docs](https://ccxt.com)
25
+
26
+
27
+ ## Installation
28
+
29
+ ```
30
+ pip install coinex-api
31
+ ```
32
+
33
+ ## Usage
34
+
35
+ ### Sync
36
+
37
+ ```Python
38
+ from coinex import CoinexSync
39
+
40
+ def main():
41
+ instance = CoinexSync({})
42
+ ob = instance.fetch_order_book("BTC/USDC")
43
+ print(ob)
44
+ #
45
+ # balance = instance.fetch_balance()
46
+ # order = instance.create_order("BTC/USDC", "limit", "buy", 1, 100000)
47
+ ```
48
+
49
+ ### Async
50
+
51
+ ```Python
52
+ import asyncio
53
+ from coinex import CoinexAsync
54
+
55
+ async def main():
56
+ instance = CoinexAsync({})
57
+ ob = await instance.fetch_order_book("BTC/USDC")
58
+ print(ob)
59
+ #
60
+ # balance = await instance.fetch_balance()
61
+ # order = await instance.create_order("BTC/USDC", "limit", "buy", 1, 100000)
62
+
63
+ asyncio.run(main())
64
+ ```
65
+
66
+
67
+
68
+ ### Websockets
69
+
70
+ ```Python
71
+ from coinex import CoinexWs
72
+
73
+ async def main():
74
+ instance = CoinexWs({})
75
+ while True:
76
+ ob = await instance.watch_order_book("BTC/USDC")
77
+ print(ob)
78
+ # orders = await instance.watch_orders("BTC/USDC")
79
+ ```
80
+
81
+
82
+
83
+
84
+
85
+ #### Raw call
86
+
87
+ You can also construct custom requests to available "implicit" endpoints
88
+
89
+ ```Python
90
+ request = {
91
+ 'type': 'candleSnapshot',
92
+ 'req': {
93
+ 'coin': coin,
94
+ 'interval': tf,
95
+ 'startTime': since,
96
+ 'endTime': until,
97
+ },
98
+ }
99
+ response = await instance.public_post_info(request)
100
+ ```
101
+
102
+
103
+
104
+
105
+ ## Available methods
106
+
107
+ ### REST Unified
108
+
109
+ - `create_deposit_address(self, code: str, params={})`
110
+ - `create_market_buy_order_with_cost(self, symbol: str, cost: float, params={})`
111
+ - `create_order_request(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={})`
112
+ - `create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={})`
113
+ - `create_orders(self, orders: List[OrderRequest], params={})`
114
+ - `fetch_balance(self, params={})`
115
+ - `fetch_borrow_interest(self, code: Str = None, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
116
+ - `fetch_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
117
+ - `fetch_contract_markets(self, params)`
118
+ - `fetch_currencies(self, params={})`
119
+ - `fetch_deposit_address(self, code: str, params={})`
120
+ - `fetch_deposit_withdraw_fee(self, code: str, params={})`
121
+ - `fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={})`
122
+ - `fetch_financial_balance(self, params={})`
123
+ - `fetch_funding_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
124
+ - `fetch_funding_interval(self, symbol: str, params={})`
125
+ - `fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
126
+ - `fetch_funding_rate(self, symbol: str, params={})`
127
+ - `fetch_funding_rates(self, symbols: Strings = None, params={})`
128
+ - `fetch_isolated_borrow_rate(self, symbol: str, params={})`
129
+ - `fetch_leverage_tiers(self, symbols: Strings = None, params={})`
130
+ - `fetch_leverage(self, symbol: str, params={})`
131
+ - `fetch_margin_adjustment_history(self, symbol: Str = None, type: Str = None, since: Num = None, limit: Num = None, params={})`
132
+ - `fetch_margin_balance(self, params={})`
133
+ - `fetch_markets(self, params={})`
134
+ - `fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
135
+ - `fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={})`
136
+ - `fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
137
+ - `fetch_order_book(self, symbol: str, limit: Int = 20, params={})`
138
+ - `fetch_order(self, id: str, symbol: Str = None, params={})`
139
+ - `fetch_orders_by_status(self, status, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
140
+ - `fetch_position_history(self, symbol: str, since: Int = None, limit: Int = None, params={})`
141
+ - `fetch_position(self, symbol: str, params={})`
142
+ - `fetch_positions(self, symbols: Strings = None, params={})`
143
+ - `fetch_spot_balance(self, params={})`
144
+ - `fetch_spot_markets(self, params)`
145
+ - `fetch_swap_balance(self, params={})`
146
+ - `fetch_ticker(self, symbol: str, params={})`
147
+ - `fetch_tickers(self, symbols: Strings = None, params={})`
148
+ - `fetch_time(self, params={})`
149
+ - `fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={})`
150
+ - `fetch_trading_fee(self, symbol: str, params={})`
151
+ - `fetch_trading_fees(self, params={})`
152
+ - `fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={})`
153
+ - `fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={})`
154
+ - `add_margin(self, symbol: str, amount: float, params={})`
155
+ - `borrow_isolated_margin(self, symbol: str, code: str, amount: float, params={})`
156
+ - `cancel_all_orders(self, symbol: Str = None, params={})`
157
+ - `cancel_order(self, id: str, symbol: Str = None, params={})`
158
+ - `cancel_orders(self, ids, symbol: Str = None, params={})`
159
+ - `close_position(self, symbol: str, side: OrderSide = None, params={})`
160
+ - `describe(self)`
161
+ - `edit_order(self, id: str, symbol: str, type: OrderType, side: OrderSide, amount: Num = None, price: Num = None, params={})`
162
+ - `modify_margin_helper(self, symbol: str, amount, addOrReduce, params={})`
163
+ - `nonce(self)`
164
+ - `reduce_margin(self, symbol: str, amount: float, params={})`
165
+ - `repay_isolated_margin(self, symbol: str, code: str, amount, params={})`
166
+ - `set_leverage(self, leverage: Int, symbol: Str = None, params={})`
167
+ - `set_margin_mode(self, marginMode: str, symbol: Str = None, params={})`
168
+ - `transfer(self, code: str, amount: float, fromAccount: str, toAccount: str, params={})`
169
+ - `withdraw(self, code: str, amount: float, address: str, tag=None, params={})`
170
+
171
+ ### REST Raw
172
+
173
+ - `v1_public_get_amm_market(request)`
174
+ - `v1_public_get_common_currency_rate(request)`
175
+ - `v1_public_get_common_asset_config(request)`
176
+ - `v1_public_get_common_maintain_info(request)`
177
+ - `v1_public_get_common_temp_maintain_info(request)`
178
+ - `v1_public_get_margin_market(request)`
179
+ - `v1_public_get_market_info(request)`
180
+ - `v1_public_get_market_list(request)`
181
+ - `v1_public_get_market_ticker(request)`
182
+ - `v1_public_get_market_ticker_all(request)`
183
+ - `v1_public_get_market_depth(request)`
184
+ - `v1_public_get_market_deals(request)`
185
+ - `v1_public_get_market_kline(request)`
186
+ - `v1_public_get_market_detail(request)`
187
+ - `v1_private_get_account_amm_balance(request)`
188
+ - `v1_private_get_account_investment_balance(request)`
189
+ - `v1_private_get_account_balance_history(request)`
190
+ - `v1_private_get_account_market_fee(request)`
191
+ - `v1_private_get_balance_coin_deposit(request)`
192
+ - `v1_private_get_balance_coin_withdraw(request)`
193
+ - `v1_private_get_balance_info(request)`
194
+ - `v1_private_get_balance_deposit_address_coin_type(request)`
195
+ - `v1_private_get_contract_transfer_history(request)`
196
+ - `v1_private_get_credit_info(request)`
197
+ - `v1_private_get_credit_balance(request)`
198
+ - `v1_private_get_investment_transfer_history(request)`
199
+ - `v1_private_get_margin_account(request)`
200
+ - `v1_private_get_margin_config(request)`
201
+ - `v1_private_get_margin_loan_history(request)`
202
+ - `v1_private_get_margin_transfer_history(request)`
203
+ - `v1_private_get_order_deals(request)`
204
+ - `v1_private_get_order_finished(request)`
205
+ - `v1_private_get_order_pending(request)`
206
+ - `v1_private_get_order_status(request)`
207
+ - `v1_private_get_order_status_batch(request)`
208
+ - `v1_private_get_order_user_deals(request)`
209
+ - `v1_private_get_order_stop_finished(request)`
210
+ - `v1_private_get_order_stop_pending(request)`
211
+ - `v1_private_get_order_user_trade_fee(request)`
212
+ - `v1_private_get_order_market_trade_info(request)`
213
+ - `v1_private_get_sub_account_balance(request)`
214
+ - `v1_private_get_sub_account_transfer_history(request)`
215
+ - `v1_private_get_sub_account_auth_api(request)`
216
+ - `v1_private_get_sub_account_auth_api_user_auth_id(request)`
217
+ - `v1_private_post_balance_coin_withdraw(request)`
218
+ - `v1_private_post_contract_balance_transfer(request)`
219
+ - `v1_private_post_margin_flat(request)`
220
+ - `v1_private_post_margin_loan(request)`
221
+ - `v1_private_post_margin_transfer(request)`
222
+ - `v1_private_post_order_limit_batch(request)`
223
+ - `v1_private_post_order_ioc(request)`
224
+ - `v1_private_post_order_limit(request)`
225
+ - `v1_private_post_order_market(request)`
226
+ - `v1_private_post_order_modify(request)`
227
+ - `v1_private_post_order_stop_limit(request)`
228
+ - `v1_private_post_order_stop_market(request)`
229
+ - `v1_private_post_order_stop_modify(request)`
230
+ - `v1_private_post_sub_account_transfer(request)`
231
+ - `v1_private_post_sub_account_register(request)`
232
+ - `v1_private_post_sub_account_unfrozen(request)`
233
+ - `v1_private_post_sub_account_frozen(request)`
234
+ - `v1_private_post_sub_account_auth_api(request)`
235
+ - `v1_private_put_balance_deposit_address_coin_type(request)`
236
+ - `v1_private_put_sub_account_unfrozen(request)`
237
+ - `v1_private_put_sub_account_frozen(request)`
238
+ - `v1_private_put_sub_account_auth_api_user_auth_id(request)`
239
+ - `v1_private_put_v1_account_settings(request)`
240
+ - `v1_private_delete_balance_coin_withdraw(request)`
241
+ - `v1_private_delete_order_pending_batch(request)`
242
+ - `v1_private_delete_order_pending(request)`
243
+ - `v1_private_delete_order_stop_pending(request)`
244
+ - `v1_private_delete_order_stop_pending_id(request)`
245
+ - `v1_private_delete_order_pending_by_client_id(request)`
246
+ - `v1_private_delete_order_stop_pending_by_client_id(request)`
247
+ - `v1_private_delete_sub_account_auth_api_user_auth_id(request)`
248
+ - `v1_private_delete_sub_account_authorize_id(request)`
249
+ - `v1_perpetualpublic_get_ping(request)`
250
+ - `v1_perpetualpublic_get_time(request)`
251
+ - `v1_perpetualpublic_get_market_list(request)`
252
+ - `v1_perpetualpublic_get_market_limit_config(request)`
253
+ - `v1_perpetualpublic_get_market_ticker(request)`
254
+ - `v1_perpetualpublic_get_market_ticker_all(request)`
255
+ - `v1_perpetualpublic_get_market_depth(request)`
256
+ - `v1_perpetualpublic_get_market_deals(request)`
257
+ - `v1_perpetualpublic_get_market_funding_history(request)`
258
+ - `v1_perpetualpublic_get_market_kline(request)`
259
+ - `v1_perpetualprivate_get_market_user_deals(request)`
260
+ - `v1_perpetualprivate_get_asset_query(request)`
261
+ - `v1_perpetualprivate_get_order_pending(request)`
262
+ - `v1_perpetualprivate_get_order_finished(request)`
263
+ - `v1_perpetualprivate_get_order_stop_finished(request)`
264
+ - `v1_perpetualprivate_get_order_stop_pending(request)`
265
+ - `v1_perpetualprivate_get_order_status(request)`
266
+ - `v1_perpetualprivate_get_order_stop_status(request)`
267
+ - `v1_perpetualprivate_get_position_finished(request)`
268
+ - `v1_perpetualprivate_get_position_pending(request)`
269
+ - `v1_perpetualprivate_get_position_funding(request)`
270
+ - `v1_perpetualprivate_get_position_adl_history(request)`
271
+ - `v1_perpetualprivate_get_market_preference(request)`
272
+ - `v1_perpetualprivate_get_position_margin_history(request)`
273
+ - `v1_perpetualprivate_get_position_settle_history(request)`
274
+ - `v1_perpetualprivate_post_market_adjust_leverage(request)`
275
+ - `v1_perpetualprivate_post_market_position_expect(request)`
276
+ - `v1_perpetualprivate_post_order_put_limit(request)`
277
+ - `v1_perpetualprivate_post_order_put_market(request)`
278
+ - `v1_perpetualprivate_post_order_put_stop_limit(request)`
279
+ - `v1_perpetualprivate_post_order_put_stop_market(request)`
280
+ - `v1_perpetualprivate_post_order_modify(request)`
281
+ - `v1_perpetualprivate_post_order_modify_stop(request)`
282
+ - `v1_perpetualprivate_post_order_cancel(request)`
283
+ - `v1_perpetualprivate_post_order_cancel_all(request)`
284
+ - `v1_perpetualprivate_post_order_cancel_batch(request)`
285
+ - `v1_perpetualprivate_post_order_cancel_stop(request)`
286
+ - `v1_perpetualprivate_post_order_cancel_stop_all(request)`
287
+ - `v1_perpetualprivate_post_order_close_limit(request)`
288
+ - `v1_perpetualprivate_post_order_close_market(request)`
289
+ - `v1_perpetualprivate_post_position_adjust_margin(request)`
290
+ - `v1_perpetualprivate_post_position_stop_loss(request)`
291
+ - `v1_perpetualprivate_post_position_take_profit(request)`
292
+ - `v1_perpetualprivate_post_position_market_close(request)`
293
+ - `v1_perpetualprivate_post_order_cancel_by_client_id(request)`
294
+ - `v1_perpetualprivate_post_order_cancel_stop_by_client_id(request)`
295
+ - `v1_perpetualprivate_post_market_preference(request)`
296
+ - `v2_public_get_maintain_info(request)`
297
+ - `v2_public_get_ping(request)`
298
+ - `v2_public_get_time(request)`
299
+ - `v2_public_get_spot_market(request)`
300
+ - `v2_public_get_spot_ticker(request)`
301
+ - `v2_public_get_spot_depth(request)`
302
+ - `v2_public_get_spot_deals(request)`
303
+ - `v2_public_get_spot_kline(request)`
304
+ - `v2_public_get_spot_index(request)`
305
+ - `v2_public_get_futures_market(request)`
306
+ - `v2_public_get_futures_ticker(request)`
307
+ - `v2_public_get_futures_depth(request)`
308
+ - `v2_public_get_futures_deals(request)`
309
+ - `v2_public_get_futures_kline(request)`
310
+ - `v2_public_get_futures_index(request)`
311
+ - `v2_public_get_futures_funding_rate(request)`
312
+ - `v2_public_get_futures_funding_rate_history(request)`
313
+ - `v2_public_get_futures_position_level(request)`
314
+ - `v2_public_get_futures_liquidation_history(request)`
315
+ - `v2_public_get_futures_basis_history(request)`
316
+ - `v2_public_get_assets_deposit_withdraw_config(request)`
317
+ - `v2_public_get_assets_all_deposit_withdraw_config(request)`
318
+ - `v2_private_get_account_subs(request)`
319
+ - `v2_private_get_account_subs_api_detail(request)`
320
+ - `v2_private_get_account_subs_info(request)`
321
+ - `v2_private_get_account_subs_api(request)`
322
+ - `v2_private_get_account_subs_transfer_history(request)`
323
+ - `v2_private_get_account_subs_spot_balance(request)`
324
+ - `v2_private_get_account_trade_fee_rate(request)`
325
+ - `v2_private_get_assets_spot_balance(request)`
326
+ - `v2_private_get_assets_futures_balance(request)`
327
+ - `v2_private_get_assets_margin_balance(request)`
328
+ - `v2_private_get_assets_financial_balance(request)`
329
+ - `v2_private_get_assets_amm_liquidity(request)`
330
+ - `v2_private_get_assets_credit_info(request)`
331
+ - `v2_private_get_assets_margin_borrow_history(request)`
332
+ - `v2_private_get_assets_margin_interest_limit(request)`
333
+ - `v2_private_get_assets_deposit_address(request)`
334
+ - `v2_private_get_assets_deposit_history(request)`
335
+ - `v2_private_get_assets_withdraw(request)`
336
+ - `v2_private_get_assets_transfer_history(request)`
337
+ - `v2_private_get_spot_order_status(request)`
338
+ - `v2_private_get_spot_batch_order_status(request)`
339
+ - `v2_private_get_spot_pending_order(request)`
340
+ - `v2_private_get_spot_finished_order(request)`
341
+ - `v2_private_get_spot_pending_stop_order(request)`
342
+ - `v2_private_get_spot_finished_stop_order(request)`
343
+ - `v2_private_get_spot_user_deals(request)`
344
+ - `v2_private_get_spot_order_deals(request)`
345
+ - `v2_private_get_futures_order_status(request)`
346
+ - `v2_private_get_futures_batch_order_status(request)`
347
+ - `v2_private_get_futures_pending_order(request)`
348
+ - `v2_private_get_futures_finished_order(request)`
349
+ - `v2_private_get_futures_pending_stop_order(request)`
350
+ - `v2_private_get_futures_finished_stop_order(request)`
351
+ - `v2_private_get_futures_user_deals(request)`
352
+ - `v2_private_get_futures_order_deals(request)`
353
+ - `v2_private_get_futures_pending_position(request)`
354
+ - `v2_private_get_futures_finished_position(request)`
355
+ - `v2_private_get_futures_position_margin_history(request)`
356
+ - `v2_private_get_futures_position_funding_history(request)`
357
+ - `v2_private_get_futures_position_adl_history(request)`
358
+ - `v2_private_get_futures_position_settle_history(request)`
359
+ - `v2_private_post_account_subs(request)`
360
+ - `v2_private_post_account_subs_frozen(request)`
361
+ - `v2_private_post_account_subs_unfrozen(request)`
362
+ - `v2_private_post_account_subs_api(request)`
363
+ - `v2_private_post_account_subs_edit_api(request)`
364
+ - `v2_private_post_account_subs_delete_api(request)`
365
+ - `v2_private_post_account_subs_transfer(request)`
366
+ - `v2_private_post_account_settings(request)`
367
+ - `v2_private_post_assets_margin_borrow(request)`
368
+ - `v2_private_post_assets_margin_repay(request)`
369
+ - `v2_private_post_assets_renewal_deposit_address(request)`
370
+ - `v2_private_post_assets_withdraw(request)`
371
+ - `v2_private_post_assets_cancel_withdraw(request)`
372
+ - `v2_private_post_assets_transfer(request)`
373
+ - `v2_private_post_assets_amm_add_liquidity(request)`
374
+ - `v2_private_post_assets_amm_remove_liquidity(request)`
375
+ - `v2_private_post_spot_order(request)`
376
+ - `v2_private_post_spot_stop_order(request)`
377
+ - `v2_private_post_spot_batch_order(request)`
378
+ - `v2_private_post_spot_batch_stop_order(request)`
379
+ - `v2_private_post_spot_modify_order(request)`
380
+ - `v2_private_post_spot_modify_stop_order(request)`
381
+ - `v2_private_post_spot_cancel_all_order(request)`
382
+ - `v2_private_post_spot_cancel_order(request)`
383
+ - `v2_private_post_spot_cancel_stop_order(request)`
384
+ - `v2_private_post_spot_cancel_batch_order(request)`
385
+ - `v2_private_post_spot_cancel_batch_stop_order(request)`
386
+ - `v2_private_post_spot_cancel_order_by_client_id(request)`
387
+ - `v2_private_post_spot_cancel_stop_order_by_client_id(request)`
388
+ - `v2_private_post_futures_order(request)`
389
+ - `v2_private_post_futures_stop_order(request)`
390
+ - `v2_private_post_futures_batch_order(request)`
391
+ - `v2_private_post_futures_batch_stop_order(request)`
392
+ - `v2_private_post_futures_modify_order(request)`
393
+ - `v2_private_post_futures_modify_stop_order(request)`
394
+ - `v2_private_post_futures_cancel_all_order(request)`
395
+ - `v2_private_post_futures_cancel_order(request)`
396
+ - `v2_private_post_futures_cancel_stop_order(request)`
397
+ - `v2_private_post_futures_cancel_batch_order(request)`
398
+ - `v2_private_post_futures_cancel_batch_stop_order(request)`
399
+ - `v2_private_post_futures_cancel_order_by_client_id(request)`
400
+ - `v2_private_post_futures_cancel_stop_order_by_client_id(request)`
401
+ - `v2_private_post_futures_close_position(request)`
402
+ - `v2_private_post_futures_adjust_position_margin(request)`
403
+ - `v2_private_post_futures_adjust_position_leverage(request)`
404
+ - `v2_private_post_futures_set_position_stop_loss(request)`
405
+ - `v2_private_post_futures_set_position_take_profit(request)`
406
+
407
+ ### WS Unified
408
+
409
+ - `describe(self)`
410
+ - `watch_balance(self, params={})`
411
+ - `watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
412
+ - `watch_ticker(self, symbol: str, params={})`
413
+ - `watch_tickers(self, symbols: Strings = None, params={})`
414
+ - `watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={})`
415
+ - `watch_trades_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={})`
416
+ - `watch_order_book_for_symbols(self, symbols: List[str], limit: Int = None, params={})`
417
+ - `watch_order_book(self, symbol: str, limit: Int = None, params={})`
418
+ - `watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
419
+ - `watch_bids_asks(self, symbols: Strings = None, params={})`
420
+ - `authenticate(self, type: str)`
421
+
422
+ ## Contribution
423
+ - Give us a star :star:
424
+ - Fork and Clone! Awesome
425
+ - Select existing issues or create a new issue.
@@ -283,6 +283,6 @@ coinex/ccxt/static_dependencies/toolz/curried/exceptions.py,sha256=gKFOHDIayAWnX
283
283
  coinex/ccxt/static_dependencies/toolz/curried/operator.py,sha256=ML92mknkAwzBl2NCm-4werSUmJEtSHNY9NSzhseNM9s,525
284
284
  coinex/ccxt/static_dependencies/typing_inspect/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
285
285
  coinex/ccxt/static_dependencies/typing_inspect/typing_inspect.py,sha256=5gIWomLPfuDpgd3gX1GlnX0MuXM3VorR4j2W2qXORiQ,28269
286
- coinex_api-0.0.16.dist-info/METADATA,sha256=t_g4d3tKrodjZTg6TlomQg3jF7-xCyDw-m4VjZuQl_U,2096
287
- coinex_api-0.0.16.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
288
- coinex_api-0.0.16.dist-info/RECORD,,
286
+ coinex_api-0.0.18.dist-info/METADATA,sha256=IRDaYAdS2PATm1VWzixYfdDILSW77nxTFmvA6Gcqs8o,19331
287
+ coinex_api-0.0.18.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
288
+ coinex_api-0.0.18.dist-info/RECORD,,
@@ -1,79 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: coinex-api
3
- Version: 0.0.16
4
- Summary: coinex crypto exchange api client
5
- Project-URL: Homepage, https://github.com/ccxt/ccxt
6
- Project-URL: Issues, https://github.com/ccxt/ccxt
7
- Author-email: CCXT <info@ccxt.trade>
8
- License: MIT
9
- Classifier: Intended Audience :: Developers
10
- Classifier: Intended Audience :: Financial and Insurance Industry
11
- Classifier: Intended Audience :: Information Technology
12
- Classifier: License :: OSI Approved :: MIT License
13
- Classifier: Operating System :: OS Independent
14
- Classifier: Programming Language :: Python :: 3
15
- Classifier: Topic :: Office/Business :: Financial :: Investment
16
- Classifier: Topic :: Software Development :: Build Tools
17
- Requires-Python: >=3.8
18
- Description-Content-Type: text/markdown
19
-
20
- # coinex-python
21
- Python SDK (sync and async) for Coinex cryptocurrency exchange with Rest and WS capabilities.
22
-
23
- You can check the SDK docs here: [SDK](https://docs.ccxt.com/#/exchanges/coinex)
24
- You can check Coinex's docs here: [Docs](https://ccxt.com)
25
-
26
- *This package derives from CCXT and allows you to call pretty much every endpoint by either using the unified CCXT API or calling the endpoints directly*
27
-
28
- ## Installation
29
-
30
- ```
31
- pip install coinex-api
32
- ```
33
-
34
- ## Usage
35
-
36
- ### Sync
37
-
38
- ```Python
39
- from coinex import CoinexSync
40
-
41
- def main():
42
- instance = CoinexSync({})
43
- ob = instance.fetch_order_book("BTC/USDC")
44
- print(ob)
45
- #
46
- # balance = instance.fetch_balance()
47
- # order = instance.create_order("BTC/USDC", "limit", "buy", 1, 100000)
48
- ```
49
-
50
- ### Async
51
-
52
- ```Python
53
- import asyncio
54
- from coinex import CoinexAsync
55
-
56
- async def main():
57
- instance = CoinexAsync({})
58
- ob = await instance.fetch_order_book("BTC/USDC")
59
- print(ob)
60
- #
61
- # balance = await instance.fetch_balance()
62
- # order = await instance.create_order("BTC/USDC", "limit", "buy", 1, 100000)
63
-
64
- asyncio.run(main())
65
- ```
66
-
67
- ### Websockets
68
-
69
- ```Python
70
- from coinex import CoinexWs
71
-
72
- async def main():
73
- instance = CoinexWs({})
74
- while True:
75
- ob = await instance.watch_order_book("BTC/USDC")
76
- print(ob)
77
- # orders = await instance.watch_orders("BTC/USDC")
78
- ```
79
-