Commit Graph

790 Commits

Author SHA1 Message Date
Geoff Taylor 5063f14a16 Removed stale calculator cruft now that pandas is the main mechanism. 2022-02-21 12:28:23 +00:00
Geoff Taylor 8eb308d9be Removed some stale dataframe valuation code, implemented CSV output for dataframe. 2022-02-21 11:15:48 +00:00
Geoff Taylor 4a7c2456bc Improved account calculations and tests. 2022-02-18 19:40:57 +00:00
Geoff Taylor 1c4dba1445 Removed unnecessary declaration. 2022-02-17 16:44:28 +00:00
Geoff Taylor 97b023b39c Merge branch 'main' of https://github.com/blockworks-foundation/mango-explorer 2022-02-17 16:11:04 +00:00
Geoff Taylor 5cb0fb0fdd
Merge pull request #45 from ochaloup/starting-with-correct-url-at-client
BetterClient to use the first rpc url from list in the same way as CompoundRPCCaller
2022-02-17 16:04:04 +00:00
Geoff Taylor cbbdcc05a2 Fixed referrer memory container. 2022-02-16 15:19:21 +00:00
Geoff Taylor d2fb7e50e1 Added AccountInfo.load_by_program() to return AccountInfos since that's nearly always what we want. 2022-02-16 15:14:27 +00:00
Ondra Chaloupka 0cd6fa82dc BetterClient to use the first rpc url from list in the same way as CompoundRPCCaller 2022-02-16 09:08:56 +01:00
Geoff Taylor 6eaca82696 Fixed use of black in Makefile. 2022-02-15 14:40:49 +00:00
Geoff Taylor 551c570098 make lint now runs black to check formatting. 2022-02-15 12:52:15 +00:00
Geoff Taylor e629e16a56 Fixed linting problem with max_retries. 2022-02-15 12:47:27 +00:00
Geoff Taylor fa21fffc05
Merge pull request #44 from ochaloup/max-retries-configurable
[marketmaker] possible to configure tpu retransmissions (max retries in txn opts) when sending a transaction
2022-02-15 12:40:37 +00:00
Geoff Taylor 9d92ebbf9e Added check for SpotMarket for hedging from perp to spot in marketmaker. 2022-02-15 12:29:35 +00:00
Geoff Taylor e1ff4c6714 Fixed typo in Marketmaker Quickstart. 2022-02-15 12:29:01 +00:00
Geoff Taylor bb7754a70d Improved 'watching' of event queues a bit. 2022-02-15 11:46:08 +00:00
Ondra Chaloupka 31c9cc6f3e Adding transaction status collector instances to missing places at context builder 2022-02-14 17:43:14 +01:00
Ondra Chaloupka 961bf93e04 [marketmaker] possible to configure max retries when sending transaction 2022-02-14 17:37:38 +01:00
Geoff Taylor 450d322fe3 Updated Orders so it has consistent with_...() operations for every property. 2022-02-11 15:16:05 +00:00
Geoff Taylor 8dce45ee43 Updated crank-market so it can loop if the user wants to run it as a service. 2022-02-11 15:15:20 +00:00
Geoff Taylor a23a51a566 Removed deprecated pandas behaviour. 2022-02-10 17:06:31 +00:00
Geoff Taylor 52e356c55b Introduced environment variable to skip disclaimer. 2022-02-10 12:04:50 +00:00
Geoff Taylor 63e3a9dd88 Fixed problem parsing instruction data with optional parameter that wasn't available. Took advantage of this change to update a bunch of transaction rendering problems. Removed show-transaction-logs now that show-transaction shows them. 2022-02-10 11:16:51 +00:00
Geoff Taylor 6d60fee84f Added account.base_slots_by_index to reduce confusion over account.spot_open_orders_by_index only working with non-quote slots. 2022-02-09 20:22:25 +00:00
Geoff Taylor 433c5e8b39 Renamed set-referrer to set-discoverable-referrer and show-referrer to show-discoverable-referrer. 2022-02-09 20:11:28 +00:00
Geoff Taylor e0fe4e1f6f Added a show-referrer command and the ability to fetch it from the Account. 2022-02-09 20:08:17 +00:00
Geoff Taylor 5c3b0befa9 Switched from autopep8 to black for code formatting. Reformatted all files. Updated dependencies. 2022-02-09 19:31:50 +00:00
Geoff Taylor 9fdccca3a3 Added reflink support in placing perp orders and with new commands register-referrer-id and set-referrer. 2022-02-09 18:31:29 +00:00
Geoff Taylor 34199f0091 Removed token data file configuration via command-line. 2022-02-08 18:43:13 +00:00
Geoff Taylor 7905b3d10b v3.3.6 2022-02-08 16:13:43 +00:00
Geoff Taylor eadc6ebcc4 Cleaned up transaction error reporting. 2022-02-08 15:57:18 +00:00
Geoff Taylor f3e9add163 Fixed number of OpenOrders addresses passed to PlacePerpOrder - was one too many. 2022-02-08 15:56:44 +00:00
Geoff Taylor 00fdf9b3cb Fixed bug in show-health when there is no spot market for that slot. 2022-02-08 10:54:50 +00:00
Geoff Taylor 485a6be3b1 Added some object accessors to make using the objects easier in client code. 2022-02-07 17:50:00 +00:00
Geoff Taylor 62fc38719c
Merge pull request #39 from SpaceMonkeyForever/tx_error_msg
track tx error message
2022-02-07 11:17:20 +00:00
SpaceMonkey a60e9b1b5e track tx error message 2022-02-04 22:53:36 +02:00
Geoff Taylor 24fafe6022 Platform target for docker seems to work so adding it to main build command in Makefile. 2022-02-04 12:00:40 +00:00
Geoff Taylor f8d0f2f6c6 Explicitly build dockerfile vor x86 so building works on other architectures. 2022-02-04 11:47:45 +00:00
Geoff Taylor fc96659fe1 v3.3.5 2022-02-03 20:06:50 +00:00
Geoff Taylor 1fa4a76aec
Merge pull request #38 from ochaloup/pyth-network-prefix-to-mainnet
Pyth Oracle changed the account info at mainnet by adding prefix 'Crypto.' to assets
2022-02-03 19:29:29 +00:00
Ondra Chaloupka a398a1d9d9 Pyth Oracle changed the account info at mainnet by adding prefix 'Crypto.' to assets 2022-02-03 20:11:47 +01:00
Geoff Taylor b432e65430 v3.3.4 2022-02-02 12:16:02 +00:00
Geoff Taylor 3df3179b4c Fixed bug in deriving spot openorders address. 2022-02-02 12:13:57 +00:00
Geoff Taylor 99052dac8b v3.3.3 2022-02-01 09:07:30 +00:00
Geoff Taylor c090e7f6dd Fixed bug in Account.is_liquidatable - it should have used maintenance health not initial health when deciding an account could be liquidated. 2022-02-01 09:06:46 +00:00
Geoff Taylor 2700c12578 v3.3.2 2022-01-31 15:52:29 +00:00
Geoff Taylor e372fb932c Added PerpEventQueue.events_for_account() and PerpEventQueue.fills_for_account(), UnseenAccountFillEventTracker and tests. 2022-01-31 15:44:46 +00:00
Geoff Taylor 0e8e815c81 v3.3.1 2022-01-29 17:03:07 +00:00
Geoff Taylor e8474012c4 Fixed false positive security warning. 2022-01-29 17:02:05 +00:00
Geoff Taylor e37dd63cf1 Updated airdrop command to allow requesting SOL airdrops, removing another dependency on solana-cli. 2022-01-29 16:10:03 +00:00