Skip to content

Commit

Permalink
Merge pull request #28 from guilyx/bump-102
Browse files Browse the repository at this point in the history
Bump 1.0.2
  • Loading branch information
guilyx authored Dec 4, 2022
2 parents 60df3cd + a4017f0 commit a1c8569
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 8 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,20 @@ import os
import asyncio
from dotenv import load_dotenv


load_dotenv()

key = os.getenv("NEXO_PUBLIC_KEY")
secret = os.getenv("NEXO_SECRET_KEY")

client = nexo.AsyncClient.create(key, secret)
print(await client.get_account_balances())
async def main():
client = await nexo.AsyncClient.create(key, secret)
print(await client.get_account_balances())

await client.close_connection()

if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
```

### Docker (source)
Expand Down
14 changes: 13 additions & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.2] - 04/12/2022
### Changed
- Readme Examples

## [1.0.2] - 04/12/2022
### Added
- Asynchronous Client
- New Endpoints

### Removed
- Code Coverage for upper Clients classes

## [1.0.1] - 05-10-2022
### Added
- Example for placing order
Expand Down Expand Up @@ -32,4 +44,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- All Endpoints wrapped
- Readme with examples, setup steps
- Custom Exceptions based on Nexo's API
- Basic Tests
- Basic Tests
2 changes: 1 addition & 1 deletion nexo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.. moduleauthor:: Erwin Lejeune
"""

__version__ = "1.0.1"
__version__ = '1.0.3'

from nexo.async_client import AsyncClient
from nexo.client import Client
Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@

with open("requirements.txt") as f:
required = f.read().splitlines()


with codecs.open(
os.path.join(os.path.abspath(os.path.dirname(__file__)), "nexo", "__init__.py"),
os.path.join(os.path.dirname(os.path.abspath(__file__)), "nexo", "__init__.py"),
"r",
"latin1",
) as fp:
Expand Down

0 comments on commit a1c8569

Please sign in to comment.