Commit Graph

203 Commits

Author SHA1 Message Date
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
f78926b2f8 updated version of websockets 2021-11-23 14:38:26 +01:00
itsdeka
bf3c5f57ab adjusted get_order_history() rest endpoint 2021-11-22 16:09:59 +01:00
itsdeka
83b0a5ecb6 Added example of MARKET order with price=None 2021-11-11 12:38:47 +01:00
itsdeka
01a2a302b5 semver adjustment 2021-10-11 12:57:55 +02:00
itsdeka
64917d9e94 updated version 2021-10-04 11:34:23 +02:00
itsdeka
b4dfa65597 Handle InvalidStatuCode exception 2021-10-04 11:33:32 +02:00
Dario Moceri
d5370b155c Merge branch 'master' into ob 2021-08-12 16:39:31 +02:00
itsdeka
e1e8eb5753 semver adjustment 2021-08-12 16:33:04 +02:00
itsdeka
30b46b1ebe semver adjustment 2021-08-12 16:31:54 +02:00
itsdeka
48e8455180 ver 2021-08-09 12:31:16 +02:00
itsdeka
8e87cf17ce added full_orderbook.py example 2021-08-09 12:18:13 +02:00
itsdeka
110b4b46e1 added full_orderbook.py example 2021-08-09 12:15:56 +02:00
itsdeka
4e86eede41 if max_retries == 0 continue forever 2021-08-06 13:45:28 +02:00
Robert Kowalski
62501edfa0 Merge pull request #158 from nkasimova/update-time-in-force
Fixed bug in setting 'time in force' in order update
2021-07-19 11:56:15 +02:00
nkasimova
4f07ba0e39 Fixed bug in setting 'time in force' in order update (added changes to rest) 2021-07-15 11:19:38 +03:00
nkasimova
18eba161e5 Fixed bug in setting 'time in force' in order update 2021-07-09 15:38:14 +03:00
nkasimova
f899feb1ca Fixed a bug in close position flag 2021-07-09 13:21:05 +03:00
Robert Kowalski
7a04ecb64d Merge pull request #153 from itsdeka/margin_info
Added Margin Info endpoint & claim position
2021-06-25 13:11:39 +02:00
itsdeka
6df56657d3 -) updated CHANGELOG
-) updated example get_authenticated_data.py
-) updated string formatter margin_info.py and margin_info_base.py
2021-06-25 12:20:37 +02:00
Dario Moceri
062b13a382 fix example for ws (#151) 2021-06-25 11:37:56 +02:00
itsdeka
a28b263238 added claim_position to bfx_rest.py 2021-06-21 21:45:50 +02:00
itsdeka
98825aae10 Added Margin Info endpoint 2021-06-10 18:17:13 +02:00
Dario Moceri
4a8d3e48b0 Added 'ids' parameter to get_order_history() (#121)
* Added 'ids' parameter to get_order_history()
* fix

Co-authored-by: Robert Kowalski <robert@bitfinex.com>
2021-05-25 11:33:08 +02:00
Dario Moceri
a58c772e4b added ws example (#137)
* This is an example of how is it possible to spawn multiple bfx ws instances to comply to the open subscriptions number contraint (max. 25)
* fix
* typo
* bump version
* made the list smaller
* added newline
Co-authored-by: Robert Kowalski <robert@bitfinex.com>
2021-05-24 14:30:36 +02:00
Richard Hoekstra
e7218aef92 feat: implement funding trades endpoint (rest) (#135)
* feat: support funding_trades endpoint
* chore: bump version, add changelog entry
* chore: add final newline to funding_trade.py
* fix: 'maker' is now placeholder in fundingtrade

Co-authored-by: Richard Hoekstra <me@richardhoekstra.com>
Co-authored-by: Robert Kowalski <robert@bitfinex.com>
2021-05-24 13:32:50 +02:00
fintzd
8660fac2bb fix: delete get_seed_trades.py (#134)
* Delete get_seed_trades.py
The request here is made with REST not WS, so it is not the correct place for this example.
* Moved the file to where it belongs
2021-05-24 13:28:01 +02: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
4b4a17ebd8 get_public_trades() orders should be sorted by [timestamp, id] (#127)
Co-authored-by: Robert Kowalski <robert@bitfinex.com>

 - solved the merge conflict in CHANGELOG
2021-04-09 16:24:32 +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
fintzd
e6c94c32f9 update definitions: wrong arg value format
get_public_candles (line 99) : limit arg was set as string while below it is defined as int
get_public_trades (line 121) : limit arg was set as string while below it is defined as int
2021-04-09 16:00:13 +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
ce02356b76 updated version and CHANGELOG 2021-02-10 22:07:03 +01:00
Dario Moceri
ab1a3da851 adjusted function get_seed_candles() [maintaining backward compability] 2021-02-10 22:02:50 +01:00
Dario Moceri
82020263e3 adjusted function get_seed_candles() 2021-02-10 21:43:48 +01:00
Dario Moceri
cae37ccf4c Readded get_public_tickers() (I accidentally removed it) 2021-01-29 15:49:09 +01:00
Dario Moceri
d172bf620b Readded get_public_tickers() (I accidentally removed it) 2021-01-29 15:48:38 +01:00
Dario Moceri
0c9299184d Added Public Funding Stats (rest) 2021-01-28 22:12:20 +01:00
Dario Moceri
aea663c921 Added Public Tikers History (rest) 2021-01-28 21:50:05 +01:00
Dario Moceri
63942264ca - added function submit_pulse_comment()
- renaming
2021-01-28 21:31:51 +01:00
Dario Moceri
25f4fdc3d9 added endpoint rest auth order multi op
(https://docs.bitfinex.com/reference#rest-auth-order-multi)
2021-01-28 21:14:47 +01:00
Dario Moceri
7a5b0f338d amount is NOT optional 2021-01-27 21:58:46 +01:00
Dario Moceri
a813eb3b4b fixed generate_invoice() 2021-01-27 21:33:30 +01:00
Dario Moceri
1a835ee086 added https://docs.bitfinex.com/reference#rest-public-stats1 endpoint (get_public_stats) 2021-01-27 21:01:36 +01:00
Dario Moceri
a212fa03d9 limit = 100 as default would be better, but there is an issue with large response ( failed with status 500 - ["error",10001,"ERR_REQUEST_GENERIC: ESOCKETTIMEDOUT"] ) 2021-01-25 17:36:19 +01:00