Commit Graph

43 Commits

Author SHA1 Message Date
Riordan Panayides dd1c0fab1d Merge changes from production (#364) 2022-07-17 20:04:50 +02:00
Riordan Panayides 20f54be2ad Merge branch 'main' into pan/prod-to-main 2022-07-17 16:41:08 +01:00
Riordan Panayides 9906501e94 Hardcode required info for delisted markets 2022-07-13 00:28:49 +01:00
Kieran Gillen 140c26542a Updates TS version 2022-03-28 16:17:54 +02:00
tjs fa7edcc119 switch away from toLocaleString
toLocaleString is quite slow
2022-03-20 21:30:12 -04:00
tjs 4c0eb2114e refactor trade history to use the mango store
reduces rerenders
update usePerpPosition with tradeHistory
2022-03-20 04:06:30 -04:00
saml33 af9505ac22 format numbers 2022-03-18 08:01:16 +11:00
tjs 98a60b6f67 add check that market is loaded 2022-03-11 13:37:52 -05:00
saml33 d4d3cb1eea move size rounding to hook 2022-03-11 13:02:36 +11:00
tjs 3ad223f95b add types to the store set function 2022-02-10 12:49:59 -05:00
Tyler Shipe 855a6e6d58 add ws watching for mangoAccount 2021-12-05 20:13:23 -05:00
Tyler Shipe 6cc64dda39 fix maker taker display 2021-09-03 21:59:10 -04:00
Tyler Shipe de052ace29 add collateral available and market margin available 2021-08-23 15:35:59 -04:00
saml33 a4da1f6272 use balance instead of deposits/borrows 2021-08-22 12:59:54 +10:00
Tyler Shipe 935cd46345 exclude perp liqs from trade history table 2021-08-14 19:24:55 -04:00
Tyler Shipe d4927731ee add breakeven and avg open price 2021-08-14 14:16:15 -04:00
Tyler Shipe 654f9487c5 add trade history to account page 2021-08-13 16:02:12 -04:00
Tyler Shipe b2f6eece1c fetch perp trade history from db 2021-08-13 11:05:49 -04:00
Tyler Shipe 5154292e7d filter out fills if open orders account doesnt exist for mkt 2021-08-09 10:55:48 -04:00
Tyler Shipe 3dadee255a remove console logs, use latest client 2021-08-06 18:49:17 -04:00
Tyler Shipe f8ee52eb7f fix to show trade history even when spot open order acct doesnt exist 2021-08-06 18:35:10 -04:00
Tyler Shipe 52d98d28c2 flip side in trade history based on maker or taker 2021-08-04 13:15:28 -04:00
Tyler Shipe 85ed076fe0 sort trade history for perps 2021-08-04 12:46:14 -04:00
Tyler Shipe 267639dec5 update positions and history tables 2021-07-24 14:12:52 -04:00
Tyler Shipe 0c82280855 fix trade history and refresh data bugs 2021-07-07 17:18:54 -04:00
Tyler Shipe 619295d2e0 parsed trade history for perps 2021-06-24 16:57:11 -04:00
Tyler Shipe 25d41f2f58 display unparsed perp history 2021-06-24 12:30:45 -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
saml33 3b5f22b815
User account page (#22)
* layout, overview, start on assets, borrows and open orders

* trade history, sortable data hook for tables, borrow page

* handle deposit and withdraw buttons

* borrow modal ui and integration + settle borrow for individual assets

* in orders balance to asset table and totals, responsive css, new connected wallet button + small tweaks

* account switch/creation flow

* accounts modal, update to usebalances hook

* handle settle, deposit before settle, save last account

* disable borrow/withdraw button when no account
2021-06-05 10:11:44 -04:00
Tyler Shipe 74d9f70dbf implement withdraw max with borrow 2021-04-20 10:09:25 -04:00
Tyler Shipe 8d0019de47 fix for updating after cancel order 2021-04-15 18:45:26 -04:00
Tyler Shipe 3160dacb92 fix trade history table 2021-04-15 13:20:24 -04:00
Tyler Shipe faa466ca17 prevent extra rerenders 2021-04-15 02:16:36 -04:00
Tyler Shipe a674ff74d3 texting fixes 2021-04-14 18:46:36 -04:00
Tyler Shipe 8b418dbe5f handle no open orders account 2021-04-13 20:14:38 -04:00
Tyler Shipe d495be6b32 handle no trade history 2021-04-13 20:03:29 -04:00
Tyler Shipe c59e61df82 fetch trade history on history table mount 2021-04-13 17:04:57 -04:00
Tyler Shipe 59f1156703 Add UiLock toggle and themed the stats page 2021-04-13 12:51:42 -04:00
Tyler Shipe 56c0372a7f wire up trade history 2021-04-13 00:40:26 -04:00
Tyler Shipe 4eccd0c74a created balances and fee discounts components 2021-04-07 17:49:37 -04:00
Tyler Shipe 82b091434e wip: wiring up global state to components 2021-04-05 10:40:58 -04:00