bitmart 0.0.18__py3-none-any.whl → 0.0.20__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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bitmart
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.20
|
|
4
4
|
Summary: bitmart crypto exchange api client
|
|
5
5
|
Project-URL: Homepage, https://github.com/ccxt/ccxt
|
|
6
6
|
Project-URL: Issues, https://github.com/ccxt/ccxt
|
|
@@ -21,7 +21,7 @@ Description-Content-Type: text/markdown
|
|
|
21
21
|
Python SDK (sync and async) for Bitmart cryptocurrency exchange with Rest and WS capabilities.
|
|
22
22
|
|
|
23
23
|
You can check the SDK docs here: [SDK](https://docs.ccxt.com/#/exchanges/bitmart)
|
|
24
|
-
You can check Bitmart's docs here: [Docs](https://
|
|
24
|
+
You can check Bitmart's docs here: [Docs](https://www.google.com/search?q=google+bitmart+cryptocurrency+exchange+api+docs)
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
## Installation
|
|
@@ -49,9 +49,13 @@ def main():
|
|
|
49
49
|
### Async
|
|
50
50
|
|
|
51
51
|
```Python
|
|
52
|
+
import sys
|
|
52
53
|
import asyncio
|
|
53
54
|
from bitmart import BitmartAsync
|
|
54
55
|
|
|
56
|
+
if sys.platform == 'win32':
|
|
57
|
+
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
|
|
58
|
+
|
|
55
59
|
async def main():
|
|
56
60
|
instance = BitmartAsync({})
|
|
57
61
|
ob = await instance.fetch_order_book("BTC/USDC")
|
|
@@ -60,6 +64,9 @@ async def main():
|
|
|
60
64
|
# balance = await instance.fetch_balance()
|
|
61
65
|
# order = await instance.create_order("BTC/USDC", "limit", "buy", 1, 100000)
|
|
62
66
|
|
|
67
|
+
# once you are done with the exchange
|
|
68
|
+
await instance.close()
|
|
69
|
+
|
|
63
70
|
asyncio.run(main())
|
|
64
71
|
```
|
|
65
72
|
|
|
@@ -68,14 +75,21 @@ asyncio.run(main())
|
|
|
68
75
|
### Websockets
|
|
69
76
|
|
|
70
77
|
```Python
|
|
78
|
+
import sys
|
|
71
79
|
from bitmart import BitmartWs
|
|
72
80
|
|
|
81
|
+
if sys.platform == 'win32':
|
|
82
|
+
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
|
|
83
|
+
|
|
73
84
|
async def main():
|
|
74
85
|
instance = BitmartWs({})
|
|
75
86
|
while True:
|
|
76
87
|
ob = await instance.watch_order_book("BTC/USDC")
|
|
77
88
|
print(ob)
|
|
78
89
|
# orders = await instance.watch_orders("BTC/USDC")
|
|
90
|
+
|
|
91
|
+
# once you are done with the exchange
|
|
92
|
+
await instance.close()
|
|
79
93
|
```
|
|
80
94
|
|
|
81
95
|
|
|
@@ -100,8 +114,6 @@ You can also construct custom requests to available "implicit" endpoints
|
|
|
100
114
|
```
|
|
101
115
|
|
|
102
116
|
|
|
103
|
-
|
|
104
|
-
|
|
105
117
|
## Available methods
|
|
106
118
|
|
|
107
119
|
### REST Unified
|
|
@@ -283,6 +283,6 @@ bitmart/ccxt/static_dependencies/toolz/curried/exceptions.py,sha256=gKFOHDIayAWn
|
|
|
283
283
|
bitmart/ccxt/static_dependencies/toolz/curried/operator.py,sha256=ML92mknkAwzBl2NCm-4werSUmJEtSHNY9NSzhseNM9s,525
|
|
284
284
|
bitmart/ccxt/static_dependencies/typing_inspect/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
285
285
|
bitmart/ccxt/static_dependencies/typing_inspect/typing_inspect.py,sha256=5gIWomLPfuDpgd3gX1GlnX0MuXM3VorR4j2W2qXORiQ,28269
|
|
286
|
-
bitmart-0.0.
|
|
287
|
-
bitmart-0.0.
|
|
288
|
-
bitmart-0.0.
|
|
286
|
+
bitmart-0.0.20.dist-info/METADATA,sha256=SYLHAHoO6LI46XpUjvrQCA2FGAn1DJtBt74Az3ukR0s,14575
|
|
287
|
+
bitmart-0.0.20.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
288
|
+
bitmart-0.0.20.dist-info/RECORD,,
|
|
File without changes
|