Skip to content

Commit

Permalink
improve examples and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Th0rgal committed Jul 28, 2020
1 parent 60fcd14 commit a6cb149
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<br>
</h1>

<h4 align="center">🦾 A python3 binance API wrapper powered by modern technologies such as asyncio.</h4>
<h4 align="center">🦾 A python3 binance API wrapper powered by asyncio and python Decimals.</h4>

<p align="center">
<a href="https://discord.gg/bhbPCXW" alt="discord">
Expand Down Expand Up @@ -64,7 +64,7 @@ client = binance.Client(API_KEY, API_SECRET)
await client.load()

order = await client.create_order(
"ETHPAX", Side.BUY.value, OrderType.MARKET.value, quantity=1, test=True,
"ETHPAX", Side.BUY.value, OrderType.MARKET.value, quantity="1", test=True,
)
print(order)
```
Expand Down
4 changes: 2 additions & 2 deletions examples/get_started.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ async def main(loop):
side=binance.Side.SELL,
order_type=binance.OrderType.LIMIT,
time_in_force=binance.TimeInForce.GTC,
quantity="0.0012",
price="15100.00",
quantity=Decimal("0.0012"), # you can use Decimals
price="15100.00", # or directly a string
test=False,
)
print(order)
Expand Down

0 comments on commit a6cb149

Please sign in to comment.