silas
05031a51f7
fixes
2022-05-13 08:46:38 +01:00
silas
2dfa344948
float
2022-05-13 07:33:55 +01:00
silas
623b76f413
remove limit
2022-05-10 13:02:43 +01:00
silas
da66fc3fa6
change to parseFloat
2022-05-10 12:34:31 +01:00
Riordan Panayides
e1fb7ca23d
Reenable balanceAccount
2022-05-06 13:24:06 +01:00
Riordan Panayides
14eee32799
Fix spot order cancellation
2022-05-06 12:59:15 +01:00
Riordan Panayides
3594cc0d8d
Add CONFIRMATION_TIMEOUT env variable
2022-05-03 17:36:21 +01:00
odyzzey
ee6b97dbe5
Restore balanceAccount functionality
2022-04-17 23:13:28 -05:00
Riordan Panayides
1e71444db4
Print stack trace
2022-04-14 17:48:36 +01:00
Riordan Panayides
c76d4f9258
remove log line
2022-04-12 20:08:58 +01:00
Riordan Panayides
da1a5195f5
Merge branch 'main' into commitment-level
2022-04-12 12:51:10 +01:00
Riordan Panayides
410bfc5691
Upgrade mango-client
2022-04-12 12:13:19 +01:00
Riordan Panayides
14736b4308
Merge pull request #17 from ricardojmendez/settling-perp-pnl
...
Settling Perp PnL on an account before we liquidate perp and token
2022-04-12 11:51:12 +01:00
Ricardo J. Mendez
79e5caa158
Optional commitment level
...
The Triton team recommends using the commitment level `confirmed` in
order to avoid BlockhashNotFound errors. Adding a parameter.
2022-02-24 14:03:10 +01:00
Riordan Panayides
d4b6db7649
Update default minEquity, update readme
2022-02-23 10:25:05 +00:00
Riordan Panayides
2a189ac952
Merge pull request #18 from ricardojmendez/skip-min-equity
...
Passing on accounts without a minimum of equity
2022-02-23 10:17:59 +00:00
Riordan Panayides
1a957787e2
Fix logic for liquidating bankrupt negative quote position
2022-02-20 20:56:54 +00:00
Ricardo J. Mendez
1e1d7c527e
Passing on accounts without a minimum of equity
...
My liquidator was getting stuck on a loop with accounts with 0
equity but that were reported as negative health. This will also
help avoiding accounts that you don't consider worth the opportunity
cost.
2022-02-20 07:23:46 +01:00
Ricardo J. Mendez
6655afee8f
Improvements on settling perp pnl
...
This is an optimization on f97370f following Dafy's suggestion here:
https://github.com/blockworks-foundation/liquidator-v3/pull/17#issuecomment-1020808416
It uses the client's settlePosPnl function instead of doing all the work
itself. It required making the mangoAccounts array global so we can have
access to it when liquidating from the RPC endpoint, but I'm not getting
any movement from the feed anyway.
2022-02-16 11:44:26 +01:00
Christian Kamm
42969d1d38
Feed: Fix processing of potentially liquidatable accounts
2022-02-04 20:44:04 +01:00
Christian Kamm
ff53e19294
Support using the liquidatable accounts feed as data source
2022-02-04 12:35:47 +01:00
Riordan Panayides
7da01dcfdd
Merge pull request #11 from ricardojmendez/qol-tweaks
...
Allowing extra spaces on the TARGET environment variable
2022-01-10 23:32:09 +00:00
Riordan Panayides
90a09c0e58
Merge branch 'main' into error-reporting
2022-01-10 23:30:36 +00:00
Riordan Panayides
789a50cf3e
Upgrade mango-client, fix index bug
2022-01-10 23:28:18 +00:00
Maximilian Schneider
91dd326ce0
improved error reporting for promises
2022-01-10 12:55:42 -08:00
Ricardo J. Mendez
3e58974b41
Allowing extra spaces on the TARGET environment variable
...
The value is hard to read, and being able to column-align it with the
tokens makes it easier to scan if one is configuring it correctly and
avoid mistakes, in case one plans to keep more than one of these to
non-zero values.
2021-12-14 14:33:37 +01:00
Riordan Panayides
ae27720787
Fix spot buy to close price
2021-12-13 17:23:45 +00:00
Riordan Panayides
90ab7c5eb4
Remove errant log line
2021-12-06 14:48:11 +00:00
Riordan Panayides
bddffb59ea
Fix logging
2021-12-06 14:37:20 +00:00
Riordan Panayides
82197ee1d5
Move ts-node to runtime dependencies, add INTERVAL_REBALANCE to readme
2021-12-06 00:55:49 +00:00
Riordan Panayides
8604faa152
Improve error logging, add rebalance interval
2021-12-06 00:43:29 +00:00
Riordan Panayides
af1df8ddaf
add crank instruction to perp order
2021-12-05 23:07:12 +00:00
Riordan Panayides
a9d1f7cc60
try reloading open orders on account update
2021-12-05 19:19:50 +00:00
Riordan Panayides
4071ce5f5f
Add rebalancing interval
2021-12-05 19:19:11 +00:00
Riordan Panayides
604cc420bc
Fix liquidateSpot bug
2021-12-05 16:04:03 +00:00
Riordan Panayides
b6219236cc
Merge branch 'main' into pan/improvements
2021-12-02 18:32:41 +00:00
Riordan Panayides
7a37705efb
Simplify token rebalancing, adjust price for liq fee
2021-12-02 18:14:26 +00:00
Riordan Panayides
e2c128feff
Shuffle accounts array on load
2021-12-02 18:13:19 +00:00
Riordan Panayides
a31167ae9c
Fix some bugs, tidy up
2021-12-02 18:12:46 +00:00
Riordan Panayides
62bdea83ef
Add retry limit to forceCancelSpotOrders
2021-12-02 18:04:58 +00:00
Riordan Panayides
9b2ea64d85
Add liab limit
2021-12-02 18:03:18 +00:00
Riordan Panayides
7d44dd8d12
Improve errors and logging
2021-12-02 18:00:48 +00:00
Riordan Panayides
b3e5e96db4
Increase default refreshAccounts interval
2021-12-02 17:54:05 +00:00
dd
4fed499693
fix shouldLiquidateSpot bug; upgrade mango client
2021-12-02 12:43:25 -05:00
Riordan Panayides
8be33e400c
Make perp orders reduce only
2021-11-18 21:05:28 +00:00
Riordan Panayides
e48508eaba
Move mangoAccounts out of global context
2021-11-17 01:49:53 +00:00
Riordan Panayides
a03a01fbaa
Merge branch 'main' of github.com:blockworks-foundation/liquidator-v3
2021-11-12 23:18:24 +00:00
Riordan Panayides
82927a4269
Fix perp liquidation condition
2021-11-12 23:18:20 +00:00
dd
b8abd0baa2
load cache and mango account separately from advanced orders
2021-11-11 12:16:16 +00:00
dd
b92161cc30
remove base root bank check liquidate perps
2021-11-10 21:55:30 +00:00