Commit Graph

71 Commits

Author SHA1 Message Date
tjs 813cd3c1c9 use finalized blockhashes; remove saving old blockhashes 2022-04-03 17:04:15 -04:00
Kieran Gillen 764ea28cb4 Adds more null checking 2022-03-30 19:10:15 +02:00
tjs 32fc5052e9 store order lines in mango store and show preferences in local storage 2022-03-20 18:50:05 -04:00
tjs 2fd1e8676c more type checks 2022-03-20 04:07:03 -04:00
saml33 e9550fddda
Markets Page (#182)
* update api endpoint

* update to new api
2022-03-19 17:57:54 +01:00
tjs 597c930b98 use blockhash that expires with timeout 2022-03-13 19:26:30 -04:00
tjs 5654ddcb9e parse account info on update 2022-03-09 17:39:57 -05:00
dd 5d7599ef97 optimizations; Add more commas to large numbers; NO MERGE STILL UNFINISHED 2022-02-28 12:51:03 -05:00
tjs 7ca2e6d31f update navigation transitions and ordering 2022-02-18 17:24:06 -05:00
tjs 138a664c77 fetch market info on an interval 2022-02-18 11:39:43 -05:00
saml33 97d6a4f993 implement pr feedback 2022-02-18 14:32:48 +11:00
tjs 86874a87e0 show fee discount in trade form 2022-02-14 17:23:57 -05:00
tjs f54af5c787 add ref links 2022-02-14 12:17:11 -05:00
Tyler Shipe a6d432f32d utilize zustand for perppositions 2022-01-27 22:57:18 -05:00
Tyler Shipe 8f27393c22 reload open orders more frequently 2022-01-27 12:24:15 -05:00
Tyler Shipe 679064d8a2 only update mango account at most once per sec and check last slot 2022-01-17 14:23:06 -06:00
Tyler Shipe fe4130ca4b v3.3 supports closing mango accounts 2022-01-16 18:35:47 -06:00
Tyler Shipe 9ba98b1e82 handle notifications when closing account 2022-01-15 18:14:20 -06:00
Tyler Shipe f0edd15fef move state out of parent components that were causing additional renders 2021-12-07 23:14:00 -05:00
Tyler Shipe 5a7a95842b always show liq price in account info 2021-12-06 15:14:29 -05:00
Tyler Shipe 855a6e6d58 add ws watching for mangoAccount 2021-12-05 20:13:23 -05:00
Tyler Shipe 84233b2a56 improve rerender when cancelling orders for a market other than the one selected 2021-11-30 18:35:49 -05:00
Tyler Shipe 4eb7cd3934 forceReload components when mango account is updated in store 2021-11-30 12:32:14 -05:00
Tyler Shipe 97250b8c74 immediately refresh order book when switching markets 2021-10-27 11:53:07 -04:00
Tyler Shipe eecf9a919d move useOrderbook login into useHydrateStore to reduce rerenders 2021-10-21 15:45:13 -04:00
Tyler Shipe efe7990056 update useEffect dependencies 2021-09-14 14:09:33 -04:00
Tyler Shipe c1269298b9 use custom endpoint url 2021-09-13 17:14:59 -04:00
Tyler Shipe 732d854c36 add manual refresh to ui 2021-09-09 20:23:02 -04:00
Tyler Shipe 5bcec8dd69 change interval to refresh trade history 2021-09-08 14:08:54 -04:00
Tyler Shipe 33070aef91 reduce getProgramAccount calls 2021-09-07 19:31:02 -04:00
Tyler Shipe e5b67857af retry transaction more frequently; use tx callback for notifications 2021-09-04 17:59:53 -04:00
Tyler Shipe a7b5c8a96a more tweaks to improve orderbook websocket 2021-08-23 13:21:20 -04:00
Tyler Shipe b3cc717c86 use context slot to sync orderbook updates 2021-08-23 13:12:48 -04:00
Tyler Shipe d35304e84f hide perp positions table if none open 2021-07-24 14:29:24 -04:00
Tyler Shipe f26ec2165c remove root bank rpc calls 2021-07-19 17:28:30 -04:00
Tyler Shipe 671e50eba0 wip: max borrow calculations 2021-07-01 13:35:47 -04:00
Tyler Shipe 84692e4cd2 remove console.logs 2021-06-23 16:18:00 -04:00
Tyler Shipe cb44650367 connect perp market to websocket for orderbook 2021-06-23 15:09:19 -04:00
Tyler Shipe 1b02a53314 update naming to match client 2021-06-23 11:32:33 -04:00
Tyler Shipe 2a1e13a1b0 show current market event queue fills 2021-06-21 15:02:12 -04:00
Tyler Shipe 8d4dabb6d0 add spot trade history fills and raw health score 2021-06-20 15:11:36 -04:00
Maximilian Schneider 107c2e8ed3 add cancel perp order call and remove unused imports 2021-06-19 00:26:47 -04:00
Maximilian Schneider 2c487348f6 open orders are kinda adapted 2021-06-18 23:07:57 -04:00
Tyler Shipe 3f3ffb1a37 spot market orderbook on websockets 2021-06-18 19:57:02 -04:00
Maximilian Schneider 08a6a8dfdf one more 2021-06-18 18:59:00 -04:00
Maximilian Schneider e256ed4754 small fixes 2021-06-18 18:57:13 -04:00
Maximilian Schneider dcbb37fbb7 simple json stuff 2021-06-18 18:51:34 -04:00
Tyler Shipe 054cc5c82e remove console logs and fetch all markets 2021-06-18 18:38:09 -04:00
Tyler Shipe 3df663614a use imported mangoClient in trade form; display userInfo component 2021-06-18 11:17:49 -04:00
Maximilian Schneider 4d3dae3b1a load order books both from perp & spot 2021-06-17 17:07:10 -04:00