Geoff Taylor
ec37c14d03
Added ensure-account and ensure-open-orders commands.
2021-08-19 11:00:39 +01:00
Geoff Taylor
2bf4d07592
cancel-order can now take an --ok-if-missing parameter, and use it if the underlying market-type supports it.
2021-08-18 12:23:20 +01:00
Geoff Taylor
2f6983cd7f
Fixed account use in withdraw command.
2021-08-17 20:46:11 +01:00
Geoff Taylor
334412f183
show-account-balances now outputs None for accounts that have no deposits.
2021-08-17 20:45:48 +01:00
Geoff Taylor
aad71929ae
Fixed send-token to pass proper TxOpt options.
2021-08-17 18:11:43 +01:00
Geoff Taylor
b408874a2a
Fixed TokenAccount to be able to find or create the associated token account, or use an old-style account if it exists and the associated token account doesn't.
2021-08-17 17:52:17 +01:00
Geoff Taylor
d5eaa385da
Removed rx.core.typing for many classes - using the actual base classes now.
2021-08-17 12:39:55 +01:00
Geoff Taylor
a4ca18e5ed
Added/centralised 'watchers'. Removed FileToucherObserver. Added HealthCheck.
2021-08-17 12:17:49 +01:00
Geoff Taylor
255d3a70df
Added a mint command for devnet use.
2021-08-13 21:34:17 +01:00
Geoff Taylor
162f41e2d0
Added a redeem-mango command.
2021-08-11 19:14:26 +01:00
Geoff Taylor
9bd75dc8d2
Websocket now has a force_reconnect() method, plus subscribable disconnect event.
2021-08-09 13:24:33 +01:00
Geoff Taylor
b297db217c
Moved group-balances to show-account-balances, and expanded it to show all balances in all accounts.
2021-08-09 11:56:01 +01:00
Geoff Taylor
4483db480b
Added account state to hedger startup.
2021-08-09 11:35:02 +01:00
Geoff Taylor
9b6f33d7e6
Added --name parameter to programs and context to allow better reporting of errors.
2021-08-09 10:27:47 +01:00
Geoff Taylor
aa4406d68f
Fixed account output/reporting.
2021-08-07 18:42:39 +01:00
Geoff Taylor
f596d571f6
Big change - now uses our own 'Client' which handles some situations better from our point of view:
...
* Being able to specify commitment on the Client instead of every call.
* Better error handling (more exception details, and specific rate limiting exceptions)
* More obvious return values, instead of always having to dereference "result".
2021-08-07 15:07:19 +01:00
Geoff Taylor
cc6f62c312
Expanded use of Group and Account baskets.
2021-08-04 13:08:34 +01:00
Geoff Taylor
88fa2181d2
Change Group to use a more basket-orientated approach instead of multiple properties requiring indexes.
2021-08-03 18:32:12 +01:00
Geoff Taylor
6f86e83160
Simplified watching. Added inventory watchers.
2021-08-02 17:14:00 +01:00
Geoff Taylor
ba56bdd9f5
Improved event queue handling. Now split incoming events into processed and unprocessed, and changed 'seen' handling to use sequence_number.
2021-08-01 17:47:45 +01:00
Geoff Taylor
e93acd3d1b
Added error notifications to marketmaker.
2021-07-31 17:37:51 +01:00
Geoff Taylor
ca3193e0b6
Added account indexing to commands that need it.
2021-07-31 14:43:39 +01:00
Geoff Taylor
cc5b7b2af7
Added some more logging/notifying to watch-minimum-balances.
2021-07-30 17:50:34 +01:00
Geoff Taylor
7cfc1b76ba
Added more logging to watch-minimum-balances.
2021-07-30 17:41:15 +01:00
Geoff Taylor
d3b0c48528
Marketmaker now automatically creates required Spot OpenOrders if it doesn't exist.
2021-07-30 15:41:47 +01:00
Geoff Taylor
e721d6c8e8
Improved Group and Account output. Tied OpenOrders and PerpOpenOrders together with a PlacedOrdersContainer protocol.
2021-07-29 16:19:52 +01:00
Geoff Taylor
c0f2a57938
Fixed error notification problem in watch-minimum-balances.
2021-07-28 19:07:57 +01:00
Geoff Taylor
0aa28d6eef
Updated error message to make source of hedge errors clearer.
2021-07-28 17:50:57 +01:00
Geoff Taylor
ab3657958d
Added hedger command. Had to introduce a LotSizeConverter - may expand its use now it's available.
2021-07-28 17:43:58 +01:00
Geoff Taylor
373392cf78
Updated place_order() method to take an Order instead of separate parameters.
2021-07-28 15:29:24 +01:00
Geoff Taylor
d7f117175f
Changed RX subscribe_on to observe_on.
2021-07-28 12:52:29 +01:00
Geoff Taylor
7bbe476b2e
Fixed watch-minimum-balance threading problems.
2021-07-28 12:31:35 +01:00
Geoff Taylor
ac25b08668
Removed max charge from ConfidenceIntervalDesiredOrdersBuilder, added a confidence weight to allow tuning aggressiveness.
2021-07-28 11:05:52 +01:00
Geoff Taylor
d739248ec6
Better handling of unseen events in PerpEventQueue.
2021-07-27 21:49:27 +01:00
Geoff Taylor
bf7b7e33ef
Added file health check to watch-minimum-balances.
2021-07-27 17:21:18 +01:00
Geoff Taylor
7dc86a4e1a
Added watch-minimum-balances command.
2021-07-27 17:07:39 +01:00
Geoff Taylor
c874b83221
Can now explicitly pick Pyth oracle on mainnet-beta or devnet.
2021-07-26 18:07:56 +01:00
Geoff Taylor
38b08bdb6d
Removed spread-ratio parameter from marketmaker.
2021-07-26 15:57:38 +01:00
Geoff Taylor
f3546ee217
Added ConfidenceIntervalDesiredOrdersBuilder.
2021-07-26 15:47:57 +01:00
Geoff Taylor
3b23f7e4e7
Added 'confidence' to oracles so marketmaker could access Pyth confidence intervals.
2021-07-26 13:42:03 +01:00
Geoff Taylor
072252095a
Some work on streaming logs and account/program events.
2021-07-26 12:19:13 +01:00
Geoff Taylor
eb244a2167
Renamed PerpMarket to PerpMarketDetails, and PerpsMarket to PerpMarket to be consistent with SerumMarket and SpotMarket. Improved market stub handling.
2021-07-23 14:18:26 +01:00
Geoff Taylor
8fe48de527
Moved functionality into *Market objects.
2021-07-23 10:20:44 +01:00
Geoff Taylor
7ddc61a3e3
Fixed linting problems.
2021-07-22 15:58:00 +01:00
Geoff Taylor
c953ec07fc
Added Perp cranking code, plus program. Expanded watch-address, added complementary show-address command.
2021-07-22 15:18:37 +01:00
Geoff Taylor
2f6c3088ef
Added token output on launching marketmaker.
2021-07-21 18:25:44 +01:00
Geoff Taylor
000040f678
Fixed return value.
2021-07-21 16:37:47 +01:00
Geoff Taylor
817b31f8ea
Added a streaming watcher for some account types.
2021-07-21 16:35:38 +01:00
Geoff Taylor
c11aececd9
Fixed Serum cranking to be more complete.
2021-07-21 14:31:04 +01:00
Geoff Taylor
0166b5e371
MarketMaker now takes an optional OrderType parameter.
2021-07-20 10:24:05 +01:00