crypto-com-sdk 0.0.15__py3-none-any.whl → 0.0.17__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,306 @@
1
+ Metadata-Version: 2.4
2
+ Name: crypto-com-sdk
3
+ Version: 0.0.17
4
+ Summary: cryptocom 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
+ # cryptocom-python
21
+ Python SDK (sync and async) for Cryptocom cryptocurrency exchange with Rest and WS capabilities.
22
+
23
+ You can check the SDK docs here: [SDK](https://docs.ccxt.com/#/exchanges/cryptocom)
24
+ You can check Cryptocom's docs here: [Docs](https://ccxt.com)
25
+
26
+
27
+ ## Installation
28
+
29
+ ```
30
+ pip install crypto-com-sdk
31
+ ```
32
+
33
+ ## Usage
34
+
35
+ ### Sync
36
+
37
+ ```Python
38
+ from cryptocom import CryptocomSync
39
+
40
+ def main():
41
+ instance = CryptocomSync({})
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 cryptocom import CryptocomAsync
54
+
55
+ async def main():
56
+ instance = CryptocomAsync({})
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 cryptocom import CryptocomWs
72
+
73
+ async def main():
74
+ instance = CryptocomWs({})
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_advanced_order_request(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={})`
110
+ - `create_order_request(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={})`
111
+ - `create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={})`
112
+ - `create_orders(self, orders: List[OrderRequest], params={})`
113
+ - `fetch_accounts(self, params={})`
114
+ - `fetch_balance(self, params={})`
115
+ - `fetch_deposit_address(self, code: str, params={})`
116
+ - `fetch_deposit_addresses_by_network(self, code: str, params={})`
117
+ - `fetch_deposit_withdraw_fees(self, codes: Strings = None, params={})`
118
+ - `fetch_deposits(self, code: Str = None, since: Int = None, limit: Int = None, params={})`
119
+ - `fetch_funding_rate_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
120
+ - `fetch_ledger(self, code: Str = None, since: Int = None, limit: Int = None, params={})`
121
+ - `fetch_markets(self, params={})`
122
+ - `fetch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
123
+ - `fetch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={})`
124
+ - `fetch_open_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
125
+ - `fetch_order_book(self, symbol: str, limit: Int = None, params={})`
126
+ - `fetch_order(self, id: str, symbol: Str = None, params={})`
127
+ - `fetch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
128
+ - `fetch_position(self, symbol: str, params={})`
129
+ - `fetch_positions(self, symbols: Strings = None, params={})`
130
+ - `fetch_settlement_history(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
131
+ - `fetch_ticker(self, symbol: str, params={})`
132
+ - `fetch_tickers(self, symbols: Strings = None, params={})`
133
+ - `fetch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={})`
134
+ - `fetch_trading_fee(self, symbol: str, params={})`
135
+ - `fetch_trading_fees(self, params={})`
136
+ - `fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={})`
137
+ - `cancel_all_orders(self, symbol: Str = None, params={})`
138
+ - `cancel_order(self, id: str, symbol: Str = None, params={})`
139
+ - `cancel_orders_for_symbols(self, orders: List[CancellationRequest], params={})`
140
+ - `cancel_orders(self, ids, symbol: Str = None, params={})`
141
+ - `close_position(self, symbol: str, side: OrderSide = None, params={})`
142
+ - `custom_handle_margin_mode_and_params(self, methodName, params={})`
143
+ - `describe(self)`
144
+ - `nonce(self)`
145
+ - `params_to_string(self, object, level)`
146
+ - `withdraw(self, code: str, amount: float, address: str, tag=None, params={})`
147
+
148
+ ### REST Raw
149
+
150
+ - `v1_public_get_public_auth(request)`
151
+ - `v1_public_get_public_get_instruments(request)`
152
+ - `v1_public_get_public_get_book(request)`
153
+ - `v1_public_get_public_get_candlestick(request)`
154
+ - `v1_public_get_public_get_trades(request)`
155
+ - `v1_public_get_public_get_tickers(request)`
156
+ - `v1_public_get_public_get_valuations(request)`
157
+ - `v1_public_get_public_get_expired_settlement_price(request)`
158
+ - `v1_public_get_public_get_insurance(request)`
159
+ - `v1_public_get_public_get_risk_parameters(request)`
160
+ - `v1_public_post_public_staking_get_conversion_rate(request)`
161
+ - `v1_private_post_private_set_cancel_on_disconnect(request)`
162
+ - `v1_private_post_private_get_cancel_on_disconnect(request)`
163
+ - `v1_private_post_private_user_balance(request)`
164
+ - `v1_private_post_private_user_balance_history(request)`
165
+ - `v1_private_post_private_get_positions(request)`
166
+ - `v1_private_post_private_create_order(request)`
167
+ - `v1_private_post_private_create_order_list(request)`
168
+ - `v1_private_post_private_cancel_order(request)`
169
+ - `v1_private_post_private_cancel_order_list(request)`
170
+ - `v1_private_post_private_cancel_all_orders(request)`
171
+ - `v1_private_post_private_close_position(request)`
172
+ - `v1_private_post_private_get_order_history(request)`
173
+ - `v1_private_post_private_get_open_orders(request)`
174
+ - `v1_private_post_private_get_order_detail(request)`
175
+ - `v1_private_post_private_get_trades(request)`
176
+ - `v1_private_post_private_change_account_leverage(request)`
177
+ - `v1_private_post_private_get_transactions(request)`
178
+ - `v1_private_post_private_create_subaccount_transfer(request)`
179
+ - `v1_private_post_private_get_subaccount_balances(request)`
180
+ - `v1_private_post_private_get_order_list(request)`
181
+ - `v1_private_post_private_create_withdrawal(request)`
182
+ - `v1_private_post_private_get_currency_networks(request)`
183
+ - `v1_private_post_private_get_deposit_address(request)`
184
+ - `v1_private_post_private_get_accounts(request)`
185
+ - `v1_private_post_private_get_withdrawal_history(request)`
186
+ - `v1_private_post_private_get_deposit_history(request)`
187
+ - `v1_private_post_private_get_fee_rate(request)`
188
+ - `v1_private_post_private_get_instrument_fee_rate(request)`
189
+ - `v1_private_post_private_staking_stake(request)`
190
+ - `v1_private_post_private_staking_unstake(request)`
191
+ - `v1_private_post_private_staking_get_staking_position(request)`
192
+ - `v1_private_post_private_staking_get_staking_instruments(request)`
193
+ - `v1_private_post_private_staking_get_open_stake(request)`
194
+ - `v1_private_post_private_staking_get_stake_history(request)`
195
+ - `v1_private_post_private_staking_get_reward_history(request)`
196
+ - `v1_private_post_private_staking_convert(request)`
197
+ - `v1_private_post_private_staking_get_open_convert(request)`
198
+ - `v1_private_post_private_staking_get_convert_history(request)`
199
+ - `v2_public_get_public_auth(request)`
200
+ - `v2_public_get_public_get_instruments(request)`
201
+ - `v2_public_get_public_get_book(request)`
202
+ - `v2_public_get_public_get_candlestick(request)`
203
+ - `v2_public_get_public_get_ticker(request)`
204
+ - `v2_public_get_public_get_trades(request)`
205
+ - `v2_public_get_public_margin_get_transfer_currencies(request)`
206
+ - `v2_public_get_public_margin_get_load_currenices(request)`
207
+ - `v2_public_get_public_respond_heartbeat(request)`
208
+ - `v2_private_post_private_set_cancel_on_disconnect(request)`
209
+ - `v2_private_post_private_get_cancel_on_disconnect(request)`
210
+ - `v2_private_post_private_create_withdrawal(request)`
211
+ - `v2_private_post_private_get_withdrawal_history(request)`
212
+ - `v2_private_post_private_get_currency_networks(request)`
213
+ - `v2_private_post_private_get_deposit_history(request)`
214
+ - `v2_private_post_private_get_deposit_address(request)`
215
+ - `v2_private_post_private_export_create_export_request(request)`
216
+ - `v2_private_post_private_export_get_export_requests(request)`
217
+ - `v2_private_post_private_export_download_export_output(request)`
218
+ - `v2_private_post_private_get_account_summary(request)`
219
+ - `v2_private_post_private_create_order(request)`
220
+ - `v2_private_post_private_cancel_order(request)`
221
+ - `v2_private_post_private_cancel_all_orders(request)`
222
+ - `v2_private_post_private_create_order_list(request)`
223
+ - `v2_private_post_private_get_order_history(request)`
224
+ - `v2_private_post_private_get_open_orders(request)`
225
+ - `v2_private_post_private_get_order_detail(request)`
226
+ - `v2_private_post_private_get_trades(request)`
227
+ - `v2_private_post_private_get_accounts(request)`
228
+ - `v2_private_post_private_get_subaccount_balances(request)`
229
+ - `v2_private_post_private_create_subaccount_transfer(request)`
230
+ - `v2_private_post_private_otc_get_otc_user(request)`
231
+ - `v2_private_post_private_otc_get_instruments(request)`
232
+ - `v2_private_post_private_otc_request_quote(request)`
233
+ - `v2_private_post_private_otc_accept_quote(request)`
234
+ - `v2_private_post_private_otc_get_quote_history(request)`
235
+ - `v2_private_post_private_otc_get_trade_history(request)`
236
+ - `v2_private_post_private_otc_create_order(request)`
237
+ - `derivatives_public_get_public_auth(request)`
238
+ - `derivatives_public_get_public_get_instruments(request)`
239
+ - `derivatives_public_get_public_get_book(request)`
240
+ - `derivatives_public_get_public_get_candlestick(request)`
241
+ - `derivatives_public_get_public_get_trades(request)`
242
+ - `derivatives_public_get_public_get_tickers(request)`
243
+ - `derivatives_public_get_public_get_valuations(request)`
244
+ - `derivatives_public_get_public_get_expired_settlement_price(request)`
245
+ - `derivatives_public_get_public_get_insurance(request)`
246
+ - `derivatives_private_post_private_set_cancel_on_disconnect(request)`
247
+ - `derivatives_private_post_private_get_cancel_on_disconnect(request)`
248
+ - `derivatives_private_post_private_user_balance(request)`
249
+ - `derivatives_private_post_private_user_balance_history(request)`
250
+ - `derivatives_private_post_private_get_positions(request)`
251
+ - `derivatives_private_post_private_create_order(request)`
252
+ - `derivatives_private_post_private_create_order_list(request)`
253
+ - `derivatives_private_post_private_cancel_order(request)`
254
+ - `derivatives_private_post_private_cancel_order_list(request)`
255
+ - `derivatives_private_post_private_cancel_all_orders(request)`
256
+ - `derivatives_private_post_private_close_position(request)`
257
+ - `derivatives_private_post_private_convert_collateral(request)`
258
+ - `derivatives_private_post_private_get_order_history(request)`
259
+ - `derivatives_private_post_private_get_open_orders(request)`
260
+ - `derivatives_private_post_private_get_order_detail(request)`
261
+ - `derivatives_private_post_private_get_trades(request)`
262
+ - `derivatives_private_post_private_change_account_leverage(request)`
263
+ - `derivatives_private_post_private_get_transactions(request)`
264
+ - `derivatives_private_post_private_create_subaccount_transfer(request)`
265
+ - `derivatives_private_post_private_get_subaccount_balances(request)`
266
+ - `derivatives_private_post_private_get_order_list(request)`
267
+
268
+ ### WS Unified
269
+
270
+ - `describe(self)`
271
+ - `pong(self, client, message)`
272
+ - `watch_order_book(self, symbol: str, limit: Int = None, params={})`
273
+ - `un_watch_order_book(self, symbol: str, params={})`
274
+ - `watch_order_book_for_symbols(self, symbols: List[str], limit: Int = None, params={})`
275
+ - `un_watch_order_book_for_symbols(self, symbols: List[str], params={})`
276
+ - `watch_trades(self, symbol: str, since: Int = None, limit: Int = None, params={})`
277
+ - `un_watch_trades(self, symbol: str, params={})`
278
+ - `watch_trades_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={})`
279
+ - `un_watch_trades_for_symbols(self, symbols: List[str], params={})`
280
+ - `watch_my_trades(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
281
+ - `watch_ticker(self, symbol: str, params={})`
282
+ - `un_watch_ticker(self, symbol: str, params={})`
283
+ - `watch_tickers(self, symbols: Strings = None, params={})`
284
+ - `un_watch_tickers(self, symbols: Strings = None, params={})`
285
+ - `watch_bids_asks(self, symbols: Strings = None, params={})`
286
+ - `watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={})`
287
+ - `un_watch_ohlcv(self, symbol: str, timeframe='1m', params={})`
288
+ - `watch_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
289
+ - `watch_positions(self, symbols: Strings = None, since: Int = None, limit: Int = None, params={})`
290
+ - `set_positions_cache(self, client: Client, type, symbols: Strings = None)`
291
+ - `load_positions_snapshot(self, client, messageHash)`
292
+ - `watch_balance(self, params={})`
293
+ - `create_order_ws(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={})`
294
+ - `cancel_order_ws(self, id: str, symbol: Str = None, params={})`
295
+ - `cancel_all_orders_ws(self, symbol: Str = None, params={})`
296
+ - `watch_public(self, messageHash, params={})`
297
+ - `watch_public_multiple(self, messageHashes, topics, params={})`
298
+ - `un_watch_public_multiple(self, topic: str, symbols: List[str], messageHashes: List[str], subMessageHashes: List[str], topics: List[str], params={}, subExtend={})`
299
+ - `watch_private_request(self, nonce, params={})`
300
+ - `watch_private_subscribe(self, messageHash, params={})`
301
+ - `authenticate(self, params={})`
302
+
303
+ ## Contribution
304
+ - Give us a star :star:
305
+ - Fork and Clone! Awesome
306
+ - Select existing issues or create a new issue.
@@ -283,6 +283,6 @@ cryptocom/ccxt/static_dependencies/toolz/curried/exceptions.py,sha256=gKFOHDIayA
283
283
  cryptocom/ccxt/static_dependencies/toolz/curried/operator.py,sha256=ML92mknkAwzBl2NCm-4werSUmJEtSHNY9NSzhseNM9s,525
284
284
  cryptocom/ccxt/static_dependencies/typing_inspect/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
285
285
  cryptocom/ccxt/static_dependencies/typing_inspect/typing_inspect.py,sha256=5gIWomLPfuDpgd3gX1GlnX0MuXM3VorR4j2W2qXORiQ,28269
286
- crypto_com_sdk-0.0.15.dist-info/METADATA,sha256=OpOyyrG8KCpkVGst3UBTpP0B41Yh59CafXM2x1WROCs,2146
287
- crypto_com_sdk-0.0.15.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
288
- crypto_com_sdk-0.0.15.dist-info/RECORD,,
286
+ crypto_com_sdk-0.0.17.dist-info/METADATA,sha256=obIZC_Nl1AtAP-pKatf8e9l0xY_3i-6FP-NgyCife4I,14165
287
+ crypto_com_sdk-0.0.17.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
288
+ crypto_com_sdk-0.0.17.dist-info/RECORD,,
@@ -1,79 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: crypto-com-sdk
3
- Version: 0.0.15
4
- Summary: cryptocom 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
- # cryptocom-python
21
- Python SDK (sync and async) for Cryptocom cryptocurrency exchange with Rest and WS capabilities.
22
-
23
- You can check the SDK docs here: [SDK](https://docs.ccxt.com/#/exchanges/cryptocom)
24
- You can check Cryptocom'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 crypto-com-sdk
32
- ```
33
-
34
- ## Usage
35
-
36
- ### Sync
37
-
38
- ```Python
39
- from cryptocom import CryptocomSync
40
-
41
- def main():
42
- instance = CryptocomSync({})
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 cryptocom import CryptocomAsync
55
-
56
- async def main():
57
- instance = CryptocomAsync({})
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 cryptocom import CryptocomWs
71
-
72
- async def main():
73
- instance = CryptocomWs({})
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
-