Skip to content

Commit

Permalink
docs(): Update README examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Atem18 committed Oct 19, 2021
1 parent e4b786d commit bcb7ee4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ async def get_web_sockets_token():

ws_token = await self.kraky_api_client.get_web_sockets_token()
return ws_token

asyncio.run(get_web_sockets_token)
```

### Websocket
Expand All @@ -49,12 +51,14 @@ import asyncio
from kraky import KrakyApiClient, KrakyWsClient


async def get_ws_token():
async def get_web_sockets_token():
kraken_api_key = ""
kraken_secret = ""
kraky_api_client = KrakyApiClient(api_key=kraken_api_key, secret=kraken_secret)
kraky_api_client = KrakyApiClient(
api_key=kraken_api_key, secret=kraken_secret
)

ws_token = await kraky_api_client.get_web_sockets_token()
ws_token = await self.kraky_api_client.get_web_sockets_token()
return ws_token


Expand Down

0 comments on commit bcb7ee4

Please sign in to comment.