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