Skip to content

Commit 36dc975

Browse files
committed
Update README with exchange repository links
1 parent 22acbb8 commit 36dc975

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

README.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# woo-python
2+
Python SDK (sync and async) for Woo cryptocurrency exchange with Rest and WS capabilities.
3+
4+
You can check the SDK docs here: [SDK](https://docs.ccxt.com/#/exchanges/woo)
5+
You can check Woo's docs here: [Docs](https://ccxt.com)
6+
7+
*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*
8+
9+
## Installation
10+
11+
```
12+
pip install woo-api
13+
```
14+
15+
## Usage
16+
17+
### Sync
18+
19+
```Python
20+
from woo import WooSync
21+
22+
def main():
23+
instance = WooSync({})
24+
ob = instance.fetch_order_book("BTC/USDC")
25+
print(ob)
26+
#
27+
# balance = instance.fetch_balance()
28+
# order = instance.create_order("BTC/USDC", "limit", "buy", 1, 100000)
29+
```
30+
31+
### Async
32+
33+
```Python
34+
import asyncio
35+
from woo import WooAsync
36+
37+
async def main():
38+
instance = WooAsync({})
39+
ob = await instance.fetch_order_book("BTC/USDC")
40+
print(ob)
41+
#
42+
# balance = await instance.fetch_balance()
43+
# order = await instance.create_order("BTC/USDC", "limit", "buy", 1, 100000)
44+
45+
asyncio.run(main())
46+
```
47+
48+
### Websockets
49+
50+
```Python
51+
from woo import WooWs
52+
53+
async def main():
54+
instance = WooWs({})
55+
while True:
56+
ob = await instance.watch_order_book("BTC/USDC")
57+
print(ob)
58+
# orders = await instance.watch_orders("BTC/USDC")
59+
```
60+

0 commit comments

Comments
 (0)