exchanges-wrapper 1.4.8__tar.gz → 1.4.9__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-1.4.9/.deepsource.toml +12 -0
- exchanges-wrapper-1.4.9/.dockerignore +3 -0
- exchanges-wrapper-1.4.9/.github/FUNDING.yml +1 -0
- exchanges-wrapper-1.4.9/.github/dependabot.yml +11 -0
- exchanges-wrapper-1.4.9/.github/workflows/docker-image.yml +32 -0
- exchanges-wrapper-1.4.9/.github/workflows/python-publish.yml +40 -0
- exchanges-wrapper-1.4.9/CHANGELOG.md +427 -0
- exchanges-wrapper-1.4.9/Dockerfile +23 -0
- {exchanges_wrapper-1.4.8 → exchanges-wrapper-1.4.9}/PKG-INFO +4 -5
- exchanges-wrapper-1.4.9/example/exch_client.py +422 -0
- exchanges-wrapper-1.4.9/example/ms_cfg.toml +5 -0
- {exchanges_wrapper-1.4.8 → exchanges-wrapper-1.4.9}/exchanges_wrapper/__init__.py +1 -1
- exchanges-wrapper-1.4.9/exchanges_wrapper/api_pb2.py +120 -0
- {exchanges_wrapper-1.4.8 → exchanges-wrapper-1.4.9}/exchanges_wrapper/bitfinex_parser.py +34 -25
- {exchanges_wrapper-1.4.8 → exchanges-wrapper-1.4.9}/exchanges_wrapper/bybit_parser.py +0 -1
- {exchanges_wrapper-1.4.8 → exchanges-wrapper-1.4.9}/exchanges_wrapper/client.py +54 -44
- {exchanges_wrapper-1.4.8 → exchanges-wrapper-1.4.9}/exchanges_wrapper/exch_srv.py +5 -7
- {exchanges_wrapper-1.4.8 → exchanges-wrapper-1.4.9}/exchanges_wrapper/http_client.py +2 -3
- {exchanges_wrapper-1.4.8 → exchanges-wrapper-1.4.9}/exchanges_wrapper/huobi_parser.py +71 -90
- {exchanges_wrapper-1.4.8 → exchanges-wrapper-1.4.9}/exchanges_wrapper/okx_parser.py +0 -1
- {exchanges_wrapper-1.4.8 → exchanges-wrapper-1.4.9}/exchanges_wrapper/proto/exchanges_wrapper/api.proto +15 -16
- {exchanges_wrapper-1.4.8 → exchanges-wrapper-1.4.9}/exchanges_wrapper/web_sockets.py +64 -31
- {exchanges_wrapper-1.4.8 → exchanges-wrapper-1.4.9}/pyproject.toml +3 -4
- exchanges-wrapper-1.4.9/requirements.txt +11 -0
- exchanges_wrapper-1.4.8/exchanges_wrapper/api_pb2.py +0 -513
- {exchanges_wrapper-1.4.8 → exchanges-wrapper-1.4.9}/LICENSE.md +0 -0
- {exchanges_wrapper-1.4.8 → exchanges-wrapper-1.4.9}/README.md +0 -0
- {exchanges_wrapper-1.4.8 → exchanges-wrapper-1.4.9}/exchanges_wrapper/api_pb2_grpc.py +0 -0
- {exchanges_wrapper-1.4.8 → exchanges-wrapper-1.4.9}/exchanges_wrapper/c_structures.py +0 -0
- {exchanges_wrapper-1.4.8 → exchanges-wrapper-1.4.9}/exchanges_wrapper/definitions.py +0 -0
- {exchanges_wrapper-1.4.8 → exchanges-wrapper-1.4.9}/exchanges_wrapper/errors.py +0 -0
- {exchanges_wrapper-1.4.8 → exchanges-wrapper-1.4.9}/exchanges_wrapper/events.py +0 -0
- {exchanges_wrapper-1.4.8 → exchanges-wrapper-1.4.9}/exchanges_wrapper/exch_srv_cfg.toml.template +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
custom: ['https://github.com/DogsTailFarmer/exchanges-wrapper#donate']
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
|
3
|
+
# Please see the documentation for all configuration options:
|
|
4
|
+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
5
|
+
|
|
6
|
+
version: 2
|
|
7
|
+
updates:
|
|
8
|
+
- package-ecosystem: "pip" # See documentation for possible values
|
|
9
|
+
directory: "/" # Location of package manifests
|
|
10
|
+
schedule:
|
|
11
|
+
interval: "weekly"
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: Docker Image CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
release:
|
|
6
|
+
types: [published]
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- name: Checkout
|
|
13
|
+
uses: actions/checkout@v3
|
|
14
|
+
|
|
15
|
+
- name: PrepareReg Names
|
|
16
|
+
run: |
|
|
17
|
+
echo IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
|
|
18
|
+
echo IMAGE_TAG=$(echo ${{ github.ref }} | tr '[:upper:]' '[:lower:]' | awk '{split($0,a,"/"); print a[3]}') >> $GITHUB_ENV
|
|
19
|
+
|
|
20
|
+
- name: Login to GHCR
|
|
21
|
+
uses: docker/login-action@v2
|
|
22
|
+
with:
|
|
23
|
+
registry: ghcr.io
|
|
24
|
+
username: ${{ github.repository_owner }}
|
|
25
|
+
password: ${{ secrets.GITHUB_TOKEN }}
|
|
26
|
+
|
|
27
|
+
- name: Build and push
|
|
28
|
+
run: |
|
|
29
|
+
docker build . --tag ghcr.io/$IMAGE_REPOSITORY:$IMAGE_TAG
|
|
30
|
+
docker push ghcr.io/$IMAGE_REPOSITORY:$IMAGE_TAG
|
|
31
|
+
docker build . --tag ghcr.io/$IMAGE_REPOSITORY:latest
|
|
32
|
+
docker push ghcr.io/$IMAGE_REPOSITORY:latest
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# This workflow will upload a Python Package using Twine when a release is created
|
|
2
|
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
|
|
3
|
+
|
|
4
|
+
# This workflow uses actions that are not certified by GitHub.
|
|
5
|
+
# They are provided by a third-party and are governed by
|
|
6
|
+
# separate terms of service, privacy policy, and support
|
|
7
|
+
# documentation.
|
|
8
|
+
|
|
9
|
+
name: Upload Python Package
|
|
10
|
+
|
|
11
|
+
on:
|
|
12
|
+
workflow_dispatch:
|
|
13
|
+
release:
|
|
14
|
+
types: [published]
|
|
15
|
+
|
|
16
|
+
permissions:
|
|
17
|
+
contents: read
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
deploy:
|
|
21
|
+
|
|
22
|
+
runs-on: ubuntu-latest
|
|
23
|
+
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v3
|
|
26
|
+
- name: Set up Python
|
|
27
|
+
uses: actions/setup-python@v3
|
|
28
|
+
with:
|
|
29
|
+
python-version: '3.x'
|
|
30
|
+
- name: Install dependencies
|
|
31
|
+
run: |
|
|
32
|
+
python -m pip install --upgrade pip
|
|
33
|
+
pip install build
|
|
34
|
+
- name: Build package
|
|
35
|
+
run: python -m build
|
|
36
|
+
- name: Publish package
|
|
37
|
+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
|
|
38
|
+
with:
|
|
39
|
+
user: __token__
|
|
40
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
## 1.4.9 2024-02-07
|
|
2
|
+
### Fix
|
|
3
|
+
* Some minor fixes
|
|
4
|
+
|
|
5
|
+
## 1.4.9b5 2024-02-07
|
|
6
|
+
### Update
|
|
7
|
+
* Dependency: Up requirements for `grpcio` and `grpcio-tools` to 1.60.1
|
|
8
|
+
|
|
9
|
+
## 1.4.9b3 2024-02-07
|
|
10
|
+
### Update
|
|
11
|
+
* Bitfinex: refining order processing
|
|
12
|
+
|
|
13
|
+
## 1.4.9b2 2024-02-05
|
|
14
|
+
### Fix
|
|
15
|
+
* Binance: `TransferToMaster`: sentence `Email address should be encoded. e.g. alice@test.com should be encoded into
|
|
16
|
+
alice%40test.com` from API docs the are False, must be `content += urlencode(kwargs["params"], safe="@")`
|
|
17
|
+
|
|
18
|
+
### Update
|
|
19
|
+
* HTX: changed deprecated endpoint "v1/common/symbols" to "v1/settings/common/market-symbols"
|
|
20
|
+
* Binance: `GET /api/v3/exchangeInfo` from response remove deprecated `quotePrecision`
|
|
21
|
+
|
|
22
|
+
## 1.4.8 2024-02-02
|
|
23
|
+
### Added for new features
|
|
24
|
+
* Binance: `TransferToMaster` now can be used for collect assets on the sub-account
|
|
25
|
+
|
|
26
|
+
## 1.4.7.post6 2024-01-31
|
|
27
|
+
### Fix
|
|
28
|
+
* Bitfinex: order processing
|
|
29
|
+
|
|
30
|
+
## 1.4.7 2024-01-25
|
|
31
|
+
### Fix
|
|
32
|
+
* Bybit: filter LOT_SIZE.stepSize
|
|
33
|
+
* Bitfinex: filter LOT_SIZE.stepSize
|
|
34
|
+
|
|
35
|
+
### Added for new features
|
|
36
|
+
* Binance: new method [`OneClickArrivalDeposit`](https://binance-docs.github.io/apidocs/spot/en/#one-click-arrival-deposit-apply-for-expired-address-deposit-user_data)
|
|
37
|
+
|
|
38
|
+
### Update
|
|
39
|
+
* Bitfinex: refine the order processing
|
|
40
|
+
* Dependency: Up requirements for Python>=3.9
|
|
41
|
+
|
|
42
|
+
## v1.4.6 2024-01-06
|
|
43
|
+
### Update
|
|
44
|
+
* FetchOrder: Bitfinex: generate trades events for orders older than the last two weeks
|
|
45
|
+
|
|
46
|
+
## v1.4.5 2024-01-05
|
|
47
|
+
### Fix
|
|
48
|
+
* `exch_client.py` init error
|
|
49
|
+
|
|
50
|
+
### Update
|
|
51
|
+
* replacing json with ujson to improve performance
|
|
52
|
+
* Dependency: Up requirements for crypto-ws-api==2.0.6
|
|
53
|
+
|
|
54
|
+
## v1.4.4 2023-12-13
|
|
55
|
+
### Update
|
|
56
|
+
* Before send cancel order result checking if it was be executed and generating trade event
|
|
57
|
+
* Rollback 1.4.3
|
|
58
|
+
- Binance: in create Limit order parameters adding parameter "selfTradePreventionMode": "NONE"
|
|
59
|
+
|
|
60
|
+
## v1.4.3 2023-12-12
|
|
61
|
+
### Fix
|
|
62
|
+
* For limit order get status EXPIRED_IN_MATCH on Binance testnet #42
|
|
63
|
+
+ Binance: in create Limit order parameters adding parameter "selfTradePreventionMode": "NONE"
|
|
64
|
+
+ For method json_format.ParseDict(..., ignore_unknown_fields=True) parameter added
|
|
65
|
+
|
|
66
|
+
## v1.4.2 2023-12-11
|
|
67
|
+
### Update
|
|
68
|
+
* Some minor improvements
|
|
69
|
+
|
|
70
|
+
## v1.4.1 2023-12-01
|
|
71
|
+
### Update
|
|
72
|
+
* Bybit: fetch_ledgers(): get transfer event from Sub account to Main account on Main account
|
|
73
|
+
|
|
74
|
+
## v1.4.0 2023-11-23
|
|
75
|
+
### Update
|
|
76
|
+
* Some minor improvements
|
|
77
|
+
|
|
78
|
+
## v1.4.0rc6 2023-11-11
|
|
79
|
+
### Fix
|
|
80
|
+
* FetchOrder for Demo - ByBitSub01: BTCUSDT: 0 exception: list index out of range
|
|
81
|
+
* OKX: get ws_api endpoint from config
|
|
82
|
+
* ByBit: send and handling WSS keepalive message
|
|
83
|
+
|
|
84
|
+
## v1.4.0rc3 2023-11-01
|
|
85
|
+
### Fix
|
|
86
|
+
* websockets v12.0 raised `ConnectionClosed` exception
|
|
87
|
+
* Dependency: Up requirements for crypto-ws-api==2.0.5.post3
|
|
88
|
+
|
|
89
|
+
## v1.4.0rc1 2023-10-31
|
|
90
|
+
### Fix
|
|
91
|
+
* Bitfinex: WSS Information message processing logic adjusted
|
|
92
|
+
|
|
93
|
+
### Update
|
|
94
|
+
* Dependency: Up requirements for crypto-ws-api==2.0.5
|
|
95
|
+
* Other dependency
|
|
96
|
+
* protobuf format for:
|
|
97
|
+
+ OpenClientConnectionRequest
|
|
98
|
+
+ FetchOrderRequest
|
|
99
|
+
|
|
100
|
+
### Added for new features
|
|
101
|
+
* Bybit exchange V5 API support implemented. Supported account type is
|
|
102
|
+
[Unified Trading Account](https://testnet.bybit.com/en/help-center/article/Introduction-to-Bybit-Unified-Trading-Account),
|
|
103
|
+
for main and sub-accounts. Spot Trading only.
|
|
104
|
+
|
|
105
|
+
## v1.3.7.post4 2023-10-09
|
|
106
|
+
### Update
|
|
107
|
+
* Dependency: Up requirements for crypto-ws-api==2.0.4
|
|
108
|
+
|
|
109
|
+
## v1.3.7.post3 2023-10-05
|
|
110
|
+
### Update
|
|
111
|
+
* Dependency: Up requirements for crypto-ws-api==2.0.3.post1
|
|
112
|
+
|
|
113
|
+
## v1.3.7.post2 2023-09-30
|
|
114
|
+
### Update
|
|
115
|
+
* Dependency: Up requirements for crypto-ws-api==2.0.3
|
|
116
|
+
|
|
117
|
+
## v1.3.7.post1 2023-09-24
|
|
118
|
+
### Fix
|
|
119
|
+
* [2023-09-24 07:10:21,076: ERROR] Fetch order trades for HuobiSub2: HTUSDT exception: Client.fetch_order_trade_list()
|
|
120
|
+
missing 1 required positional argument: 'trade_id'
|
|
121
|
+
* exchanges_wrapper.huobi_parser.account_trade_list: incorrect key for `orderId`
|
|
122
|
+
|
|
123
|
+
### Update
|
|
124
|
+
* Dependency: Up requirements for crypto-ws-api==2.0.2.post1
|
|
125
|
+
|
|
126
|
+
## v1.3.7 2023-09-19
|
|
127
|
+
### Fix
|
|
128
|
+
* Bitfinex: fix 500 `Internal server error`, caused by a Nonce value sequence failure
|
|
129
|
+
|
|
130
|
+
### Update
|
|
131
|
+
* For web socket connection migrated from aiohttp.ws_connection to websockets.client
|
|
132
|
+
* Bitfinex: Implemented rate limit control for the Bitfinex REST API.
|
|
133
|
+
* Bitfinex: Refine handling of active orders
|
|
134
|
+
* OnOrderBookUpdate: change queue to LifoQueue, for get last actual order book row
|
|
135
|
+
|
|
136
|
+
### Don't fix
|
|
137
|
+
* gRPC [(grpcio + grpcio-tools)](https://github.com/grpc/grpc): massive memory leak for version later than 1.48.2
|
|
138
|
+
|
|
139
|
+
## v1.3.6b7 2023-08-20
|
|
140
|
+
### Fix
|
|
141
|
+
* The `exch_srv_cfg.toml` wants to be updated from `exch_srv_cfg.toml.template`:
|
|
142
|
+
```toml
|
|
143
|
+
[endpoint.okx]
|
|
144
|
+
api_public = 'https://aws.okx.com'
|
|
145
|
+
api_auth = 'https://aws.okx.com'
|
|
146
|
+
ws_public = 'wss://wsaws.okx.com:8443/ws/v5/public'
|
|
147
|
+
ws_auth = 'wss://wsaws.okx.com:8443/ws/v5/private'
|
|
148
|
+
ws_business = 'wss://ws.okx.com:8443/ws/v5/business'
|
|
149
|
+
api_test = 'https://aws.okx.com'
|
|
150
|
+
ws_test = 'wss://wspap.okx.com:8443/ws/v5/private?brokerId=9999'
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## v1.3.6b4 2023-08-18
|
|
154
|
+
### Fix
|
|
155
|
+
* [ Can't resolve missed PARTIALLY_FILLED event #29 ](https://github.com/DogsTailFarmer/exchanges-wrapper/issues/29#issue-1857179139)
|
|
156
|
+
* [ OKX changed WSS endpoint for Candlesticks channel #27 ](https://github.com/DogsTailFarmer/exchanges-wrapper/issues/27#issue-1852639540)
|
|
157
|
+
|
|
158
|
+
The `exch_srv_cfg.toml` wants to be updated from `exch_srv_cfg.toml.template`:
|
|
159
|
+
```toml
|
|
160
|
+
[endpoint.okx]
|
|
161
|
+
api_public = 'https://aws.okx.com'
|
|
162
|
+
api_auth = 'https://aws.okx.com'
|
|
163
|
+
ws_public = 'wss://wsaws.okx.com:8443/ws/v5/public'
|
|
164
|
+
ws_business = 'wss://ws.okx.com:8443/ws/v5/business'
|
|
165
|
+
api_test = 'https://aws.okx.com'
|
|
166
|
+
ws_test = 'wss://wspap.okx.com:8443/ws/v5/private?brokerId=9999'
|
|
167
|
+
```
|
|
168
|
+
## v1.3.5rc1 2023-08-08
|
|
169
|
+
### Update
|
|
170
|
+
* Dependency: Up requirements for crypto-ws-api~=2.0.0rc3
|
|
171
|
+
* Optimise code by [Sourcery AI](https://docs.sourcery.ai/Guides/Getting-Started/PyCharm/) refactoring engine
|
|
172
|
+
* Some minor improvements
|
|
173
|
+
|
|
174
|
+
## v1.3.5b0 - 2023-07-26
|
|
175
|
+
### Added for new features
|
|
176
|
+
* Binance, OKX: Most requests use WSS first, REST API is used as a backup and in the case of single rare requests
|
|
177
|
+
|
|
178
|
+
## v1.3.4-1 2023-07-19
|
|
179
|
+
### Fix
|
|
180
|
+
```
|
|
181
|
+
ERROR: Cannot install crypto_ws_api and grpcio==1.56.0 because these package versions have conflicting dependencies.
|
|
182
|
+
|
|
183
|
+
The conflict is caused by:
|
|
184
|
+
The user requested grpcio==1.56.0
|
|
185
|
+
exchanges-wrapper 1.3.3 depends on grpcio==1.48.1
|
|
186
|
+
The user requested grpcio==1.56.0
|
|
187
|
+
exchanges-wrapper 1.3.2 depends on grpcio==1.48.1
|
|
188
|
+
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## v1.3.4 2023-07-17
|
|
192
|
+
### Update
|
|
193
|
+
* Up requirements for grpcio to 1.56.0
|
|
194
|
+
```bazaar
|
|
195
|
+
Known security vulnerabilities detected
|
|
196
|
+
Dependency grpcio Version < 1.53.0 Upgrade to ~> 1.53.0
|
|
197
|
+
```
|
|
198
|
+
* Bitfinex: `exchanges_wrapper.client.Client.cancel_all_orders()`: removed unnecessary status check after cancel request
|
|
199
|
+
|
|
200
|
+
## v1.3.3 2023-07-04
|
|
201
|
+
### Update
|
|
202
|
+
* UserWSSession moved to crypto-ws-api pkg
|
|
203
|
+
* Refactoring logging
|
|
204
|
+
* CheckStream(): fix log spamming on passed check
|
|
205
|
+
* Up requirements for crypto-ws-api to 1.0.1
|
|
206
|
+
|
|
207
|
+
## v1.3.2 - 2023-06-29
|
|
208
|
+
### Added for new features
|
|
209
|
+
* Binance: ws_api package implemented, last version
|
|
210
|
+
[Websocket API](https://developers.binance.com/docs/binance-trading-api/websocket_api#general-api-information)
|
|
211
|
+
used for the most commonly used methods
|
|
212
|
+
|
|
213
|
+
In `exch_srv_cfg.toml` added:
|
|
214
|
+
|
|
215
|
+
```bazaar
|
|
216
|
+
[endpoint]
|
|
217
|
+
[endpoint.binance]
|
|
218
|
+
...
|
|
219
|
+
ws_api = 'wss://ws-api.binance.com:443/ws-api/v3'
|
|
220
|
+
ws_api_test = 'wss://testnet.binance.vision/ws-api/v3'
|
|
221
|
+
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
## v1.3.1 - 2023-06-20
|
|
225
|
+
### Update
|
|
226
|
+
* Optimizing installation and initial settings
|
|
227
|
+
|
|
228
|
+
## v1.3.0-2 - 2023-06-19
|
|
229
|
+
### Update
|
|
230
|
+
* Binance: keepalive WSS
|
|
231
|
+
|
|
232
|
+
## v1.3.0 - 2023-06-01
|
|
233
|
+
### Fix
|
|
234
|
+
* exchanges_wrapper.client.Client.cancel_all_orders() set correct 'status' for cancelled orders
|
|
235
|
+
|
|
236
|
+
### Update
|
|
237
|
+
* protobuf format for CancelAllOrders() and OnOrderUpdate(). Now simple use ```result = eval(json.loads(res.result))```
|
|
238
|
+
for unpack incoming message. **Not compatible with earlier versions**
|
|
239
|
+
* dependencies
|
|
240
|
+
|
|
241
|
+
## v1.2.10-6-HotFix - 2023-04-12
|
|
242
|
+
### Fix
|
|
243
|
+
* Binance: REST API update for endpoint: GET /api/v3/exchangeInfo was changed MIN_NOTIONAL filter
|
|
244
|
+
|
|
245
|
+
## v1.2.10-5 - 2023-04-05
|
|
246
|
+
### Update
|
|
247
|
+
* Minor improvements
|
|
248
|
+
|
|
249
|
+
## v1.2.10-4 - 2023-03-04
|
|
250
|
+
### Fix
|
|
251
|
+
* OKX: intersection wss streams for several trades on one client (same account). WSS buffer moved from
|
|
252
|
+
client instance to EventsDataStream instance
|
|
253
|
+
|
|
254
|
+
## v1.2.10-3 - 2023-03-01
|
|
255
|
+
### Fix
|
|
256
|
+
* OKX: FetchOpenOrders(): getting orders list for all pair per account instead specific one pair
|
|
257
|
+
|
|
258
|
+
## v1.2.10-2 - 2023-02-26
|
|
259
|
+
### Added for new features
|
|
260
|
+
* CheckStream() method which request active WSS for trade_id
|
|
261
|
+
|
|
262
|
+
## v1.2.10 - 2023-02-22
|
|
263
|
+
### Added for new features
|
|
264
|
+
* Add method TransferToMaster():
|
|
265
|
+
|
|
266
|
+
>Send request to transfer asset from subaccount to main account
|
|
267
|
+
Binance, OKX: not additional settings needed
|
|
268
|
+
Bitfinex: for subaccount setting 2FA method, set WITHDRAWAL permission for API key,
|
|
269
|
+
in config for subaccount set 2FA key and master account EMail
|
|
270
|
+
Huobi: in config for subaccount set master_name for Main account
|
|
271
|
+
|
|
272
|
+
### Update
|
|
273
|
+
* Up requirements aiohttp to 3.8.4
|
|
274
|
+
* Some minor improvements
|
|
275
|
+
|
|
276
|
+
## v1.2.9-2 - 2023-02-04
|
|
277
|
+
### Fixed
|
|
278
|
+
* Fix DogsTailFarmer/martin-binance#50
|
|
279
|
+
|
|
280
|
+
### Update
|
|
281
|
+
* Remove unnecessary shebang
|
|
282
|
+
|
|
283
|
+
## v1.2.9-1 - 2023-01-23
|
|
284
|
+
### Update
|
|
285
|
+
* Additional check for order status if its can't place during timeout period for avoid place duplicate order
|
|
286
|
+
|
|
287
|
+
## v1.2.9 - 2023-01-08
|
|
288
|
+
### Update
|
|
289
|
+
* Removing FTX smell
|
|
290
|
+
|
|
291
|
+
## v1.2.8 - 2023-01-01
|
|
292
|
+
### Added for new features
|
|
293
|
+
* Add connection to binance.us
|
|
294
|
+
|
|
295
|
+
## v1.2.7-7 2022-12-15
|
|
296
|
+
### Fixed
|
|
297
|
+
* DogsTailFarmer/martin-binance#42
|
|
298
|
+
|
|
299
|
+
## v1.2.7-6 2022-12-08
|
|
300
|
+
### Fixed
|
|
301
|
+
* Bitfinex: handling canceled TP order after it partially filled
|
|
302
|
+
|
|
303
|
+
### Update
|
|
304
|
+
* Binance: REST API: filter type "PERCENT_PRICE" to "PERCENT_PRICE_BY_SIDE"
|
|
305
|
+
|
|
306
|
+
## v1.2.7-5 2022-12-04
|
|
307
|
+
### Update
|
|
308
|
+
* FetchOpenOrders() add handler for errors.QueryCanceled, in case RateLimitReached was raised elsewhere
|
|
309
|
+
* Some minor improvements
|
|
310
|
+
|
|
311
|
+
## v1.2.7-4 2022-11-25
|
|
312
|
+
### Fixed
|
|
313
|
+
* Clearing cancel previous wss start() before restart from 1.2.7-3 was a bad idea. It's kill himself. Rollback.
|
|
314
|
+
|
|
315
|
+
## v1.2.7-3 2022-11-24
|
|
316
|
+
### Fixed
|
|
317
|
+
* Huobi: incorrect handling for incoming ping for private channel
|
|
318
|
+
* OKX: refactoring wss heartbeat
|
|
319
|
+
* Clearing cancel previous wss start() before restart
|
|
320
|
+
|
|
321
|
+
## v1.2.7-2 2022-11-23
|
|
322
|
+
### Update
|
|
323
|
+
* Bitfinex: add "receive_timeout=30" parameter in ws_connect(), this is a reliable solution for monitoring the presence
|
|
324
|
+
of a connection
|
|
325
|
+
|
|
326
|
+
## v1.2.7-1 2022-11-21
|
|
327
|
+
### Update
|
|
328
|
+
* Add OKX section in config file
|
|
329
|
+
|
|
330
|
+
## v1.2.7 2022-11-21
|
|
331
|
+
### Added for new features
|
|
332
|
+
* OKX exchange
|
|
333
|
+
|
|
334
|
+
## v1.2.6-1 2022-11-11
|
|
335
|
+
### Fixed
|
|
336
|
+
* FTX: OnFundsUpdate() did not return a result
|
|
337
|
+
|
|
338
|
+
### Added for new features
|
|
339
|
+
* OnBalanceUpdate() for autocorrect depo and initial balance
|
|
340
|
+
|
|
341
|
+
### Update
|
|
342
|
+
* refactoring http_client module for multi exchanges purposes
|
|
343
|
+
* added _percent_price filter dummy for all parsers
|
|
344
|
+
|
|
345
|
+
## v1.2.6 2022-10-13
|
|
346
|
+
### Fixed
|
|
347
|
+
* Huobi Restart WSS for PING timeout, 20s for market and 60s for user streams
|
|
348
|
+
* Removed unnecessary refine amount/price in create_order() for Bitfinex, FTX and Huobi
|
|
349
|
+
|
|
350
|
+
## v1.2.6b1 2022-10-12
|
|
351
|
+
### Added for new features
|
|
352
|
+
* Huobi exchange
|
|
353
|
+
|
|
354
|
+
## v1.2.5-3 2022-09-26
|
|
355
|
+
### Fixed
|
|
356
|
+
* #2 FTX WS market stream lies down quietly
|
|
357
|
+
|
|
358
|
+
### Update
|
|
359
|
+
* Slightly optimized process of docker container setup and start-up
|
|
360
|
+
|
|
361
|
+
## v1.2.5-2 2022-09-23
|
|
362
|
+
### Added for new features
|
|
363
|
+
* Published as Docker image
|
|
364
|
+
|
|
365
|
+
### Update
|
|
366
|
+
* README.md add info about Docker image use
|
|
367
|
+
|
|
368
|
+
## v1.2.5-1 2022-09-21
|
|
369
|
+
### Update
|
|
370
|
+
* Restoring the closed WSS for any reason other than forced explicit shutdown
|
|
371
|
+
|
|
372
|
+
## v1.2.5 2022-09-20
|
|
373
|
+
### Update
|
|
374
|
+
* Correct max size on queue() for book WSS
|
|
375
|
+
|
|
376
|
+
## v1.2.5b0 2022-09-18
|
|
377
|
+
### Fixed
|
|
378
|
+
* [Doesn't work on bitfinex: trading rules, step_size restriction not applicable, check](https://github.com/DogsTailFarmer/martin-binance/issues/28#issue-1366945816)
|
|
379
|
+
* [FTX WS market stream lies down quietly](https://github.com/DogsTailFarmer/exchanges-wrapper/issues/2#issue-1362214342) Refactoring WSS control
|
|
380
|
+
* Keep alive Binance combined market WSS, correct restart after stop pair
|
|
381
|
+
|
|
382
|
+
### Update
|
|
383
|
+
* FetchOrder for 'PARTIALLY_FILLED' event on 'binance' and 'ftx'
|
|
384
|
+
* User data and settings config are moved outside the package to simplify the upgrade
|
|
385
|
+
* Version accounting of the configuration file is given to the package
|
|
386
|
+
|
|
387
|
+
### Added for new features
|
|
388
|
+
* Published as Docker image
|
|
389
|
+
* On first run create catalog structure for user files at ```/home/user/.MartinBinance/```
|
|
390
|
+
|
|
391
|
+
## v1.2.4 2022-08-27
|
|
392
|
+
### Fixed
|
|
393
|
+
* [Incomplete account setup](DogsTailFarmer/martin-binance#17)
|
|
394
|
+
* 1.2.3-2 Fix wss market handler, was stopped after get int type message instead of dict
|
|
395
|
+
* 1.2.3-5 clear console output
|
|
396
|
+
* 1.2.3-6 Bitfinex WSServerHandshakeError handling
|
|
397
|
+
* refactoring web_socket.py for correct handling and restart wss
|
|
398
|
+
|
|
399
|
+
### Update
|
|
400
|
+
* up to Python 3.10.6 compatible
|
|
401
|
+
* reuse aiohttp.ClientSession().ws_connect() for client session
|
|
402
|
+
|
|
403
|
+
## v1.2.3 - 2022-08-14
|
|
404
|
+
### Fixed
|
|
405
|
+
* Bitfinex: restore active orders list after restart
|
|
406
|
+
* [exch_server not exiting if it can't obtain port](https://github.com/DogsTailFarmer/martin-binance/issues/12#issue-1328603498)
|
|
407
|
+
|
|
408
|
+
## v1.2.2 - 2022-08-06
|
|
409
|
+
### Fixed
|
|
410
|
+
* Incorrect handling fetch_open_orders response after reinit connection
|
|
411
|
+
|
|
412
|
+
## v1.2.1 - 2022-08-04
|
|
413
|
+
### Added for new features
|
|
414
|
+
* FTX: WSS 'orderbook' check status by provided checksum value
|
|
415
|
+
|
|
416
|
+
### Fixed
|
|
417
|
+
* FTX: WSS 'ticker' incorrect init
|
|
418
|
+
* Bitfinex: changed priority for order status, CANCELED priority raised
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
## v1.2.0 - 2022-06-30
|
|
422
|
+
### Added for new features
|
|
423
|
+
* Bitfinex REST API / WSS implemented
|
|
424
|
+
|
|
425
|
+
### Updated
|
|
426
|
+
* Optimized WSS processing methods to improve performance and fault tolerance
|
|
427
|
+
* Updated configuration file format for multi-exchange use
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# syntax=docker/dockerfile:1
|
|
2
|
+
FROM python:3.10.6-slim
|
|
3
|
+
|
|
4
|
+
RUN useradd -ms /bin/bash appuser
|
|
5
|
+
USER appuser
|
|
6
|
+
|
|
7
|
+
ENV PATH="/home/appuser/.local/bin:${PATH}"
|
|
8
|
+
ENV PATH="/home/appuser/.local/lib/python3.10/site-packages:${PATH}"
|
|
9
|
+
ENV PYTHONUNBUFFERED=1
|
|
10
|
+
|
|
11
|
+
COPY requirements.txt requirements.txt
|
|
12
|
+
|
|
13
|
+
RUN pip3 install -r requirements.txt
|
|
14
|
+
|
|
15
|
+
COPY ./exchanges_wrapper/* /home/appuser/.local/lib/python3.10/site-packages/exchanges_wrapper/
|
|
16
|
+
|
|
17
|
+
WORKDIR "/home/appuser/.local/lib/python3.10/site-packages"
|
|
18
|
+
|
|
19
|
+
LABEL org.opencontainers.image.description="See README.md 'Get started' for setup and run package"
|
|
20
|
+
|
|
21
|
+
EXPOSE 50051
|
|
22
|
+
|
|
23
|
+
CMD ["python3","exchanges_wrapper/exch_srv.py"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: exchanges-wrapper
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.9
|
|
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
|
|
@@ -12,12 +12,11 @@ Classifier: Operating System :: Unix
|
|
|
12
12
|
Classifier: Operating System :: Microsoft :: Windows
|
|
13
13
|
Classifier: Operating System :: MacOS
|
|
14
14
|
Requires-Dist: crypto-ws-api==2.0.6
|
|
15
|
-
Requires-Dist: grpcio==1.
|
|
16
|
-
Requires-Dist: grpcio-tools==1.
|
|
17
|
-
Requires-Dist: idna==3.4
|
|
15
|
+
Requires-Dist: grpcio==1.60.1
|
|
16
|
+
Requires-Dist: grpcio-tools==1.60.1
|
|
18
17
|
Requires-Dist: pyotp~=2.9.0
|
|
19
18
|
Requires-Dist: simplejson==3.19.2
|
|
20
|
-
Requires-Dist: aiohttp==3.9.
|
|
19
|
+
Requires-Dist: aiohttp==3.9.1
|
|
21
20
|
Requires-Dist: Pympler~=1.0.1
|
|
22
21
|
Requires-Dist: websockets~=12.0
|
|
23
22
|
Requires-Dist: expiringdict~=1.2.2
|