Skip to content

Commit

Permalink
lint and format
Browse files Browse the repository at this point in the history
  • Loading branch information
pcriadoperez committed Nov 17, 2024
1 parent 010cef5 commit faa6dfc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions examples/ws_create_order.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import sys
import asyncio


root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
Expand All @@ -11,6 +10,7 @@
## create order using websockets sync
## the API is very similar to the REST API


def main():
api_key = "" # your api_key here
secret = "" # your secret here
Expand All @@ -21,6 +21,7 @@ def main():
type="MARKET",
quantity=0.1,
)
print(order['orderId'])
print(order["orderId"])


main()
main()
3 changes: 2 additions & 1 deletion examples/ws_create_order_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
## create order using websockets async
## the API is very similar to the REST API


async def main():
api_key = "" # your api_key here
secret = "" # your secret here
Expand All @@ -21,7 +22,7 @@ async def main():
type="MARKET",
quantity=0.1,
)
print(order['orderId'])
print(order["orderId"])
await client.close_connection()


Expand Down

0 comments on commit faa6dfc

Please sign in to comment.