Skip to content

Commit fc77732

Browse files
author
github-actions
committed
[BUILD]: 63d6389a2b2d5ca9dd9fe39a7d801765dd0934e0
1 parent aa34d5a commit fc77732

File tree

5 files changed

+7
-125
lines changed

5 files changed

+7
-125
lines changed

.github/scripts/push-to-repo.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ echo "Clone finished"
1515
rm -rf $TEMP_DIR_GIT/*
1616
rm -rf $TEMP_DIR_GIT/.github/*
1717
rsync -av --info=progress2 --info=name0 --exclude='.git/' --exclude='tmp/' --exclude='build/ccxt/' ./ $TEMP_DIR_GIT
18-
rm -f $TEMP_DIR_GIT/.github/workflows/transfer-all.yml && rm -f $TEMP_DIR_GIT/.github/workflows/transfer-exchange.yml
18+
rm -f $TEMP_DIR_GIT/.github/workflows/transfer-all.yml
19+
rm -f $TEMP_DIR_GIT/.github/workflows/transfer-exchange.yml
20+
rm -r $TEMP_DIR_GIT/.vscode/
21+
rm -f $TEMP_DIR_GIT/vsc-workspace.code-workspace
1922
cd $TEMP_DIR_GIT
2023
echo $EXCHANGE_NAME > exchange_name
2124
git config user.name github-actions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,4 @@ cython_debug/
174174

175175
build/ccxt
176176
/meta.json
177+
/build/package-lock.json

.vscode/launch.json

Lines changed: 0 additions & 66 deletions
This file was deleted.

README.md

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

vsc-workspace.code-workspace

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)