Skip to content

Commit 554c769

Browse files
author
github-actions
committed
[BUILD]: 2ec702618b305ac6d420a6784fa0dae5807cb669
1 parent 0ec4694 commit 554c769

File tree

3 files changed

+6
-52
lines changed

3 files changed

+6
-52
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
4747
- name: Build
4848
env:
49-
PYPI_API_SECRET: ${{ secrets.PYPI_API_SECRET }}
49+
PYPI_API_SECRET_SP: ${{ secrets.PYPI_API_SECRET_SP }}
5050
run: |
5151
cd build
5252
npm run pypi-publish
@@ -57,4 +57,4 @@ jobs:
5757
python -m twine upload dist/*
5858
env:
5959
TWINE_USERNAME: __token__
60-
TWINE_PASSWORD: ${{ secrets.PYPI_API_SECRET }}
60+
TWINE_PASSWORD: ${{ secrets.PYPI_API_SECRET_SP }}

README.md

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

9393
// check if environment variabele exist
94-
const pypiApiSecret = process.env.PYPI_API_SECRET;
94+
const pypiApiSecret = process.env.PYPI_API_SECRET_SP;
9595
if (!pypiApiSecret) {
96-
console.error('Please set environment variable PYPI_API_SECRET');
96+
console.error('Please set environment variable PYPI_API_SECRET_SP');
9797
process.exit(1);
9898
}
9999
new pypi(exchangeArgv, pypiApiSecret);

0 commit comments

Comments
 (0)