Commit Graph

96 Commits

Author SHA1 Message Date
itsdeka
55f4765271 Added id field to _parse_trade 2023-02-17 11:35:15 +01:00
itsdeka
17646f9980 refactoring - moved hosts to constants.py 2022-08-27 17:09:00 +02:00
itsdeka
b2460450c6 revert change 2022-08-23 13:30:05 +02:00
itsdeka
87e7f9820e -) Use private host for auth-based requests
-) Updated examples
2022-08-22 19:31:16 +02:00
itsdeka
3650bc7944 fixed trades handling error
added new_user_trade use to examples
updated docs
2022-01-30 12:54:57 +01:00
itsdeka
d3c105a710 fixed trades handling error 2022-01-29 22:32:17 +01:00
itsdeka
793fda9d67 updated version
changed account's trade execution (te) and trade update (tu) handling
2022-01-20 13:35:36 +01:00
itsdeka
f2d83fefbc stop wasn't awaited (now it is)
thanks to @mgfreixa
2022-01-20 12:41:37 +01:00
itsdeka
a6670caf5e Avoid p_sub not initialized issue
Thanks to @nkasimova (https://github.com/bitfinexcom/bitfinex-api-py/pull/170)
2022-01-04 17:30:32 +01:00
itsdeka
7f47405fa3 Fixed socket.send() issue (IndexError: deque index out of range) 2021-12-20 12:17:27 +01:00
itsdeka
b5f3d6d8cb Bugfix - It is now possible to call bfx.ws.run() from an already running event loop 2021-12-10 10:40:17 +01:00
itsdeka
603f546037 fix run() 2021-11-29 18:37:01 +01:00
itsdeka
d1308dad7b refactoring 2021-11-29 09:49:33 +01:00
itsdeka
765532185e fixed pyee 'error must derive from BaseException' issue 2021-11-29 09:38:42 +01:00
itsdeka
d0246296e6 Support for Python <= 3.8 2021-11-25 12:27:15 +01:00
itsdeka
faa6075eae new approach 2021-11-25 12:19:31 +01:00
itsdeka
abfafbf8cf added support per py 3.9 and 3.10 2021-11-24 14:34:33 +01:00
itsdeka
b4dfa65597 Handle InvalidStatuCode exception 2021-10-04 11:33:32 +02:00
itsdeka
4e86eede41 if max_retries == 0 continue forever 2021-08-06 13:45:28 +02:00
nkasimova
18eba161e5 Fixed bug in setting 'time in force' in order update 2021-07-09 15:38:14 +03:00
Dario Moceri
fa6ec4e718 Added missing error to ERRORS (#136)
* Added missing error to ERRORS
* bump version
2021-04-23 13:23:05 +02:00
Jon
e1f5254372 Adding balance_available to the wallet (#132)
* Adding balance_available to the wallet
* Refactoring bfx_rest.py/get_wallets to use the updated Wallet class, which has available_balance i it

Co-authored-by: jon <fcmisc@gmail.com>
2021-04-14 12:53:05 +02:00
Dario Moceri
d198ccb7a7 Invalid orders should be removed from pending_orders (#126)
* Invalid orders should be removed from pending_orders

* If an EXCHANGE_FILL_OR_KILL order is unfilled and cancelled, confirm_order_new will not get called. This can leave lots of pending orders remaining in the order_manager.

However, confirm_order_closed will get called, and therefore we should delete pending orders from that method as well.
* updated CHANGELOG
2021-04-09 16:20:08 +02:00
Dario Moceri
06a2017c3a newline end 2021-03-15 16:35:00 +01:00
Dario Moceri
02aedade8c removed extra lines 2021-03-15 16:35:00 +01:00
Dario Moceri
50c52b77ab -) Removed pendingOrders from BfxWebsocket() (it was not used anywhere)
-) Fixed issue in confirm_order_new() (the keys of the dict pending_orders are the cids of the orders, and not the ids)
2021-03-15 16:35:00 +01:00
Dario Moceri
1463f667d8 Updated pyee -> 8.0.1
Changed deprecated EventEmitter(scheduler=X) with AsyncIOEventEmitter

Now bitfinex-api-py works on Python 3.8
2021-01-21 16:18:06 +01:00
JacobPlaster
84dd5d8d09 websocket: support events pu, pc, pn 2020-07-07 11:11:43 +01:00
Richard Hoekstra
3fa6feb888 FIX:
- New closed orders were not added to the 'closed_orders' dict.
- Confirmed pending orders were not removed from the 'pending_orders' dict.
2020-07-07 10:42:57 +01:00
JOlson
427e99710e Fix docstring, comment typos 2020-07-07 10:40:06 +01:00
JacobPlaster
1f300dd326 websocket: add new events and use t/f to define ticker 2020-04-16 10:45:20 +01:00
JacobPlaster
4273a9e7f9 bfxapi: add ticker event updates 2020-04-16 10:45:20 +01:00
JacobPlaster
275cd1c75b generic_websocket: remove daemon thread and add stop function 2020-04-16 10:45:20 +01:00
JacobPlaster
5c618e930a generic_websocket: set event_emmiter thread to daemon 2020-04-13 15:58:49 +01:00
JacobPlaster
972e05eacd generic_websocket: add optimization comment 2020-01-09 11:39:06 +00:00
JacobPlaster
2cde664359 Replace 'is not' with '!=' 2020-01-09 11:39:06 +00:00
JacobPlaster
d54c0d2391 websocket: add write lock when sending 2020-01-09 11:39:06 +00:00
JacobPlaster
2195e8b3b2 ws/client: add channel_filter field 2019-12-20 11:38:00 +00:00
JacobPlaster
39e79da9a1 Orders: add meta field and support for aff_code 2019-12-17 12:52:37 +00:00
ph4z
821f8831b9 Fix resub for authenticated sockets 2019-12-17 12:50:07 +00:00
JacobPlaster
a9afd66449 README: remove ERRORS, spelling and add timeframe comment 2019-10-10 11:47:29 +01:00
JacobPlaster
3e4beb5f7e bfxapi: edit comments for doc generating 2019-10-10 11:47:29 +01:00
Jacob Plaster
25151f5011 websocket: convert notfication to notification object 2019-09-12 14:20:22 +01:00
Jacob Plaster
dfabb438de bfxapi: support leverage for derivatives 2019-09-11 12:49:53 +01:00
Jacob Plaster
f6837452fb bfxapi: add rest order endpoints 2019-09-11 12:49:53 +01:00
Jacob Plaster
11be0577d6 generic_ws: fix data server close and enable custom event emitter 2019-07-25 11:24:33 +07:00
Jacob Plaster
e59a94366f create setup.py for pip integration (@redknightlois) 2019-07-19 16:27:35 +07:00
Jacob Plaster
ac20a7530a websocket: add subscriptions to status channel functionality 2019-07-19 14:54:17 +07:00
Jacob Plaster
1eacb9eab9 Fix camel-casing filenames and remove filename conflicts 2019-07-17 14:25:43 +07:00
Jacob Plaster
13e7d505f8 add websocket multiplexer 2019-06-18 15:10:00 +08:00