bitmart 0.0.7__py3-none-any.whl → 0.0.8__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.

@@ -2099,7 +2099,6 @@ class Exchange(object):
2099
2099
  },
2100
2100
  'commonCurrencies': {
2101
2101
  'XBT': 'BTC',
2102
- 'BCC': 'BCH',
2103
2102
  'BCHSV': 'BSV',
2104
2103
  },
2105
2104
  'precisionMode': TICK_SIZE,
@@ -1,13 +1,19 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bitmart
3
- Version: 0.0.7
4
- Summary: bitmart exchange api client
3
+ Version: 0.0.8
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: Example Author <author@example.com>
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
- ### Async
38
+ ### Sync
33
39
 
34
40
  ```Python
35
- from bitmart import BitmartAsync
41
+ from bitmart import BitmartSync
36
42
 
37
- async def main():
38
- instance = BitmartAsync({})
39
- order = await instance.create_order("BTC/USDC", "limit", "buy", 1, 100000)
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
- ### Sync
52
+ ### Async
43
53
 
44
54
  ```Python
45
- from bitmart import BitmartSync
55
+ import asyncio
56
+ from bitmart import BitmartAsync
46
57
 
47
- def main():
48
- instance = BitmartSync({})
49
- order = instance.create_order("BTC/USDC", "limit", "buy", 1, 100000)
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
- orders = await instance.watch_orders("BTC/USDC")
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=4z7QnN1ZrLppZxRurWXt_PwEm6NTf492bB0V5mAVxQ0,320359
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.7.dist-info/METADATA,sha256=TKB9CRO8gW296sVB6JpLeSUuMChkZfdXv6mpKmVBUzs,1403
287
- bitmart-0.0.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
288
- bitmart-0.0.7.dist-info/RECORD,,
286
+ bitmart-0.0.8.dist-info/METADATA,sha256=zDgp1QymmXQKkY6-aL5lMGBkewOqQ4k5wfMhFArZvxs,2081
287
+ bitmart-0.0.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
288
+ bitmart-0.0.8.dist-info/RECORD,,