-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from olned/hot-fix-0.14.1
Hot fix 0.14.1
- Loading branch information
Showing
5 changed files
with
34 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import asyncio | ||
import json | ||
from ssc2ce import Deribit | ||
|
||
conn = Deribit() | ||
|
||
print("Is connected after init", conn.is_connected()) | ||
|
||
|
||
def close(): | ||
print("Check connection before closing", conn.is_connected()) | ||
asyncio.ensure_future(conn.stop()) | ||
|
||
|
||
loop = asyncio.get_event_loop() | ||
|
||
|
||
loop.call_later(1, close) | ||
|
||
try: | ||
loop.run_until_complete(conn.run_receiver()) | ||
except KeyboardInterrupt: | ||
print("Application closed by KeyboardInterrupt.") | ||
|
||
|
||
print("Is connected before exit", conn.is_connected()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
setuptools.setup( | ||
name='ssc2ce', | ||
version="0.14.0", | ||
version="0.14.1", | ||
author='Oleg Nedbaylo', | ||
author_email='[email protected]', | ||
description='A Set of Simple Connectors for access To Cryptocurrency Exchanges', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters