bitmart 0.0.7__py3-none-any.whl → 0.0.9__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.
Potentially problematic release.
This version of bitmart might be problematic. Click here for more details.
bitmart/ccxt/base/exchange.py
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bitmart
|
|
3
|
-
Version: 0.0.
|
|
4
|
-
Summary: bitmart exchange api client
|
|
3
|
+
Version: 0.0.9
|
|
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
|
|
7
|
-
Author-email:
|
|
7
|
+
Author-email: CCXT <info@ccxt.trade>
|
|
8
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
|
|
9
13
|
Classifier: Operating System :: OS Independent
|
|
10
14
|
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Topic :: Office/Business :: Financial :: Investment
|
|
16
|
+
Classifier: Topic :: Software Development :: Build Tools
|
|
11
17
|
Requires-Python: >=3.8
|
|
12
18
|
Description-Content-Type: text/markdown
|
|
13
19
|
|
|
@@ -29,24 +35,35 @@ pip install bitmart
|
|
|
29
35
|
|
|
30
36
|
## Usage
|
|
31
37
|
|
|
32
|
-
###
|
|
38
|
+
### Sync
|
|
33
39
|
|
|
34
40
|
```Python
|
|
35
|
-
from bitmart import
|
|
41
|
+
from bitmart import BitmartSync
|
|
36
42
|
|
|
37
|
-
|
|
38
|
-
instance =
|
|
39
|
-
|
|
43
|
+
def main():
|
|
44
|
+
instance = BitmartSync({})
|
|
45
|
+
ob = instance.fetch_order_book("BTC/USDC")
|
|
46
|
+
print(ob)
|
|
47
|
+
#
|
|
48
|
+
# balance = instance.fetch_balance()
|
|
49
|
+
# order = instance.create_order("BTC/USDC", "limit", "buy", 1, 100000)
|
|
40
50
|
```
|
|
41
51
|
|
|
42
|
-
###
|
|
52
|
+
### Async
|
|
43
53
|
|
|
44
54
|
```Python
|
|
45
|
-
|
|
55
|
+
import asyncio
|
|
56
|
+
from bitmart import BitmartAsync
|
|
46
57
|
|
|
47
|
-
def main():
|
|
48
|
-
instance =
|
|
49
|
-
|
|
58
|
+
async def main():
|
|
59
|
+
instance = BitmartAsync({})
|
|
60
|
+
ob = await instance.fetch_order_book("BTC/USDC")
|
|
61
|
+
print(ob)
|
|
62
|
+
#
|
|
63
|
+
# balance = await instance.fetch_balance()
|
|
64
|
+
# order = await instance.create_order("BTC/USDC", "limit", "buy", 1, 100000)
|
|
65
|
+
|
|
66
|
+
asyncio.run(main())
|
|
50
67
|
```
|
|
51
68
|
|
|
52
69
|
### Websockets
|
|
@@ -57,6 +74,8 @@ from bitmart import BitmartWs
|
|
|
57
74
|
async def main():
|
|
58
75
|
instance = BitmartWs({})
|
|
59
76
|
while True:
|
|
60
|
-
|
|
77
|
+
ob = await instance.watch_order_book("BTC/USDC")
|
|
78
|
+
print(ob)
|
|
79
|
+
# orders = await instance.watch_orders("BTC/USDC")
|
|
61
80
|
```
|
|
62
81
|
|
|
@@ -19,7 +19,7 @@ bitmart/ccxt/async_support/base/ws/order_book_side.py,sha256=GhnGUt78pJ-AYL_Dq9p
|
|
|
19
19
|
bitmart/ccxt/base/__init__.py,sha256=eTx1OE3HJjspFUQjGm6LBhaQiMKJnXjkdP-JUXknyQ0,1320
|
|
20
20
|
bitmart/ccxt/base/decimal_to_precision.py,sha256=fgWRBzRTtsf3r2INyS4f7WHlzgjB5YM1ekiwqD21aac,6634
|
|
21
21
|
bitmart/ccxt/base/errors.py,sha256=MvCrL_sAM3de616T6RE0PSxiF2xV6Qqz5b1y1ghidbk,4888
|
|
22
|
-
bitmart/ccxt/base/exchange.py,sha256=
|
|
22
|
+
bitmart/ccxt/base/exchange.py,sha256=rlbOp4euVpeXPiEEAS0eWLHA2nXGRhLHmiEnbBoIqcI,320329
|
|
23
23
|
bitmart/ccxt/base/precise.py,sha256=koce64Yrp6vFbGijJtUt-QQ6XhJgeGTCksZ871FPp_A,8886
|
|
24
24
|
bitmart/ccxt/base/types.py,sha256=asavKC4Fpuz9MGv1tJBld0j8CeojiP7nBj04Abusst4,10766
|
|
25
25
|
bitmart/ccxt/pro/__init__.py,sha256=4aT3Jcs52KwGhmrTmLuu-HLI2z_nKEU8ZXNYtvYzIk0,621
|
|
@@ -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.9.dist-info/METADATA,sha256=Pot5t-59zCRHls6uVsqFPOpVAj1HMb62awHMXURswus,2081
|
|
287
|
+
bitmart-0.0.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
288
|
+
bitmart-0.0.9.dist-info/RECORD,,
|
|
File without changes
|