Skip to content

Commit dbbc473

Browse files
author
github-actions
committed
[BUILD]: df76f39639ee73d346230a2beef3b9c807016492
1 parent 0e7521e commit dbbc473

File tree

3 files changed

+4
-51
lines changed

3 files changed

+4
-51
lines changed

.github/workflows/build-single-exchange.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424
npm install tsx
2525
- name: Build
2626
run: |
27-
cd build || echo "already in build"
2827
# get repository name and it's first word before hypher and pass that as argument
2928
REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f2 | cut -d'-' -f1)
3029
npm run build -- $REPO_NAME

README.md

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,3 @@
1-
# kucoin-python
2-
Python SDK (sync and async) for Kucoin with Rest and WS capabilities.
3-
4-
You can check Kucoin's docs here: [Docs](https://ccxt.com)
5-
6-
7-
You can check the SDK docs here: [SDK](https://docs.ccxt.com/#/exchanges/kucoin)
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 kucoin-api
15-
```
16-
17-
## Usage
18-
19-
### Async
20-
21-
```Python
22-
from kucoin-api import KucoinAsync
23-
24-
async def main():
25-
instance = KucoinAsync({})
26-
order = await instance.create_order(__EXAMPLE_SYMBOL__, "limit", "buy", 1, 100000)
27-
```
28-
29-
### Sync
30-
31-
```Python
32-
from kucoin-api import KucoinSync
33-
34-
def main():
35-
instance = KucoinSync({})
36-
order = instance.create_order(__EXAMPLE_SYMBOL__, "limit", "buy", 1, 100000)
37-
```
38-
39-
### Websockets
40-
41-
```Python
42-
from kucoin-api import KucoinWs
43-
44-
async def main():
45-
instance = KucoinWs({})
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.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ class pypi {
8080
defineVersion () {
8181
const res = execSync(`pip index versions ` + this.exchangeConfigs[this.exchange].__PYTHON_PACKAGE_NAME__);
8282
const versions = res.toString().trim();
83-
const currentVersion = versions.match(/\((\S+)\)/);
84-
const newVersion = semver.inc(currentVersion, 'patch');
83+
const matches = versions.match(/\((\S+)\)/);
84+
const newVersion = semver.inc(matches[1], 'patch');
8585
return newVersion;
8686
}
8787

0 commit comments

Comments
 (0)