exchanges-wrapper 2.1.22__tar.gz → 2.1.23__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {exchanges_wrapper-2.1.22 → exchanges_wrapper-2.1.23}/PKG-INFO +2 -2
- {exchanges_wrapper-2.1.22 → exchanges_wrapper-2.1.23}/README.md +1 -1
- {exchanges_wrapper-2.1.22 → exchanges_wrapper-2.1.23}/exchanges_wrapper/__init__.py +1 -1
- {exchanges_wrapper-2.1.22 → exchanges_wrapper-2.1.23}/exchanges_wrapper/web_sockets.py +16 -1
- {exchanges_wrapper-2.1.22 → exchanges_wrapper-2.1.23}/LICENSE.md +0 -0
- {exchanges_wrapper-2.1.22 → exchanges_wrapper-2.1.23}/exchanges_wrapper/client.py +0 -0
- {exchanges_wrapper-2.1.22 → exchanges_wrapper-2.1.23}/exchanges_wrapper/definitions.py +0 -0
- {exchanges_wrapper-2.1.22 → exchanges_wrapper-2.1.23}/exchanges_wrapper/errors.py +0 -0
- {exchanges_wrapper-2.1.22 → exchanges_wrapper-2.1.23}/exchanges_wrapper/events.py +0 -0
- {exchanges_wrapper-2.1.22 → exchanges_wrapper-2.1.23}/exchanges_wrapper/exch_srv.py +0 -0
- {exchanges_wrapper-2.1.22 → exchanges_wrapper-2.1.23}/exchanges_wrapper/exch_srv_cfg.toml.template +0 -0
- {exchanges_wrapper-2.1.22 → exchanges_wrapper-2.1.23}/exchanges_wrapper/http_client.py +0 -0
- {exchanges_wrapper-2.1.22 → exchanges_wrapper-2.1.23}/exchanges_wrapper/lib.py +0 -0
- {exchanges_wrapper-2.1.22 → exchanges_wrapper-2.1.23}/exchanges_wrapper/martin/__init__.py +0 -0
- {exchanges_wrapper-2.1.22 → exchanges_wrapper-2.1.23}/exchanges_wrapper/parsers/bitfinex.py +0 -0
- {exchanges_wrapper-2.1.22 → exchanges_wrapper-2.1.23}/exchanges_wrapper/parsers/bybit.py +0 -0
- {exchanges_wrapper-2.1.22 → exchanges_wrapper-2.1.23}/exchanges_wrapper/parsers/huobi.py +0 -0
- {exchanges_wrapper-2.1.22 → exchanges_wrapper-2.1.23}/exchanges_wrapper/parsers/okx.py +0 -0
- {exchanges_wrapper-2.1.22 → exchanges_wrapper-2.1.23}/exchanges_wrapper/proto/martin.proto +0 -0
- {exchanges_wrapper-2.1.22 → exchanges_wrapper-2.1.23}/pyproject.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: exchanges-wrapper
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.23
|
|
4
4
|
Summary: REST API and WebSocket asyncio wrapper with grpc powered multiplexer server
|
|
5
5
|
Author-email: Thomas Marchand <thomas.marchand@tuta.io>, Jerry Fedorenko <jerry.fedorenko@yahoo.com>
|
|
6
6
|
Requires-Python: >=3.9
|
|
@@ -77,7 +77,7 @@ at real bidding. First, run applications on the [Binance Spot Test Network](http
|
|
|
77
77
|
|
|
78
78
|
## Get started
|
|
79
79
|
### Prepare exchange account
|
|
80
|
-
* Create account on [Binance](https://accounts.binance.com/en/register?ref=
|
|
80
|
+
* Create account on [Binance](https://accounts.binance.com/en/register?ref=FXQ6HY5O) and get 10% discount on all trading fee
|
|
81
81
|
* Create account on [Bitfinex](https://www.bitfinex.com/sign-up?refcode=v_4az2nCP) and get 6% rebate fee
|
|
82
82
|
* Create account on [HUOBI](https://www.huobi.com/en-us/topic/double-reward/?invite_code=9uaw3223) and get 10% cashback on all trading fee
|
|
83
83
|
* Create account on [OKX](https://www.okx.com/join/2607649) and get Mystery Boxes worth up to $10,000
|
|
@@ -52,7 +52,7 @@ at real bidding. First, run applications on the [Binance Spot Test Network](http
|
|
|
52
52
|
|
|
53
53
|
## Get started
|
|
54
54
|
### Prepare exchange account
|
|
55
|
-
* Create account on [Binance](https://accounts.binance.com/en/register?ref=
|
|
55
|
+
* Create account on [Binance](https://accounts.binance.com/en/register?ref=FXQ6HY5O) and get 10% discount on all trading fee
|
|
56
56
|
* Create account on [Bitfinex](https://www.bitfinex.com/sign-up?refcode=v_4az2nCP) and get 6% rebate fee
|
|
57
57
|
* Create account on [HUOBI](https://www.huobi.com/en-us/topic/double-reward/?invite_code=9uaw3223) and get 10% cashback on all trading fee
|
|
58
58
|
* Create account on [OKX](https://www.okx.com/join/2607649) and get Mystery Boxes worth up to $10,000
|
|
@@ -12,7 +12,7 @@ __maintainer__ = "Jerry Fedorenko"
|
|
|
12
12
|
__contact__ = "https://github.com/DogsTailFarmer"
|
|
13
13
|
__email__ = "jerry.fedorenko@yahoo.com"
|
|
14
14
|
__credits__ = ["https://github.com/DanyaSWorlD"]
|
|
15
|
-
__version__ = "2.1.
|
|
15
|
+
__version__ = "2.1.23"
|
|
16
16
|
|
|
17
17
|
from pathlib import Path
|
|
18
18
|
import shutil
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import sys
|
|
2
2
|
import asyncio
|
|
3
3
|
import ujson as json
|
|
4
|
-
import logging
|
|
4
|
+
import logging.handlers
|
|
5
|
+
from pathlib import Path
|
|
5
6
|
import time
|
|
6
7
|
from decimal import Decimal
|
|
7
8
|
import gzip
|
|
@@ -15,9 +16,23 @@ import exchanges_wrapper.parsers.huobi as hbp
|
|
|
15
16
|
import exchanges_wrapper.parsers.okx as okx
|
|
16
17
|
import exchanges_wrapper.parsers.bybit as bbt
|
|
17
18
|
from crypto_ws_api.ws_session import generate_signature, compose_htx_ws_auth
|
|
19
|
+
from exchanges_wrapper import LOG_PATH
|
|
18
20
|
|
|
19
21
|
logger = logging.getLogger(__name__)
|
|
22
|
+
formatter = logging.Formatter(fmt="[%(asctime)s: %(levelname)s] %(message)s")
|
|
23
|
+
#
|
|
24
|
+
fh = logging.handlers.RotatingFileHandler(Path(LOG_PATH, 'websockets.log'), maxBytes=1000000, backupCount=10)
|
|
25
|
+
fh.setFormatter(formatter)
|
|
26
|
+
fh.setLevel(logging.INFO)
|
|
27
|
+
#
|
|
28
|
+
sh = logging.StreamHandler()
|
|
29
|
+
sh.setFormatter(formatter)
|
|
30
|
+
sh.setLevel(logging.INFO)
|
|
31
|
+
|
|
32
|
+
logger.addHandler(fh)
|
|
33
|
+
logger.addHandler(sh)
|
|
20
34
|
logger.propagate = False
|
|
35
|
+
|
|
21
36
|
sys.tracebacklimit = 0
|
|
22
37
|
|
|
23
38
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{exchanges_wrapper-2.1.22 → exchanges_wrapper-2.1.23}/exchanges_wrapper/exch_srv_cfg.toml.template
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|