Skip to content

Commit e07401a

Browse files
author
github-actions
committed
[BUILD]: 5a4a16d4147d561f5dff900b964f77a17146a211
1 parent f9b0754 commit e07401a

File tree

2 files changed

+4
-49
lines changed

2 files changed

+4
-49
lines changed

README.md

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,3 @@
1-
# cryptocom-python
2-
Python SDK (sync and async) for Cryptocom with Rest and WS capabilities.
3-
4-
You can check Cryptocom's docs here: [Docs](https://ccxt.com)
5-
6-
7-
You can check the SDK docs here: [SDK](https://docs.ccxt.com/#/exchanges/cryptocom)
8-
9-
*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*
10-
11-
## Installation
12-
13-
```
14-
pip install crypto-com-sdk
15-
```
16-
17-
## Usage
18-
19-
### Async
20-
21-
```Python
22-
from crypto_com_sdk import CryptocomAsync
23-
24-
async def main():
25-
instance = CryptocomAsync({})
26-
order = await instance.create_order(__EXAMPLE_SYMBOL__, "limit", "buy", 1, 100000)
27-
```
28-
29-
### Sync
30-
31-
```Python
32-
from crypto_com_sdk import CryptocomSync
33-
34-
def main():
35-
instance = CryptocomSync({})
36-
order = instance.create_order(__EXAMPLE_SYMBOL__, "limit", "buy", 1, 100000)
37-
```
38-
39-
### Websockets
40-
41-
```Python
42-
from crypto_com_sdk import CryptocomWs
43-
44-
async def main():
45-
instance = CryptocomWs({})
46-
while True:
47-
orders = await instance.watch_orders(__EXAMPLE_SYMBOL__)
48-
```
1+
# central repo for single exchanges
492

3+
this is dev.repo, not meant to be used by end users.

build/pypi-publish.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ class pypi {
7878
const versions = res.toString().trim();
7979
const matches = versions.match(/\((\S+)\)/);
8080
// @ts-ignore
81-
const newVersion = semver.inc(matches[1], 'patch');
81+
const currentVersion = matches[1] || '0.0.1'; // if new package and not found
82+
const newVersion = semver.inc(currentVersion, 'patch');
8283
return newVersion;
8384
}
8485

0 commit comments

Comments
 (0)