Commit Graph

175 Commits

Author SHA1 Message Date
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 c5866ee610 make health ratio red if init health is at or below zero 2021-08-04 17:47:05 -04:00
Tyler Shipe 77716dc7ee fix account name 2021-08-04 14:51:17 -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 f6bafcc6f1 fix balances 2021-08-03 19:32:24 -04:00
Tyler Shipe 65eea96aa8 add fetchTradeHistory fn 2021-08-03 13:59:16 -04:00
Tyler Shipe 2e33486dbb use latest group 2021-07-28 19:03:21 -04:00
Tyler Shipe e20506bd66 fix top bar links 2021-07-27 11:41:33 -04:00
Tyler Shipe be031cc0fe consistency with user info tabs 2021-07-24 16:15:27 -04:00
Tyler Shipe d35304e84f hide perp positions table if none open 2021-07-24 14:29:24 -04:00
Tyler Shipe 267639dec5 update positions and history tables 2021-07-24 14:12:52 -04:00
Tyler Shipe f79bc1639f remove alerts from v3 2021-07-23 13:14:18 -04:00
Tyler Shipe 784c1c9d50 format stat numbers with commas 2021-07-21 17:47:10 -04:00
Tyler Shipe 2ed5d759ef more stats improvements 2021-07-21 17:31:28 -04:00
Tyler Shipe 05a46993ba add basic stats page 2021-07-21 17:26:18 -04:00
Tyler Shipe 562753f937 Merge branch 'main' into stats-page 2021-07-21 17:12:04 -04:00
Tyler Shipe 5c48d96775 don't try load market before group is loaded 2021-07-21 13:40:42 -04:00
Tyler Shipe f26ec2165c remove root bank rpc calls 2021-07-19 17:28:30 -04:00
Riordan Panayides 03349b7892 Merge remote-tracking branch 'origin/main' into stats-page 2021-07-13 14:46:09 +01:00
dd ca85a90b38 changed Balances interface for net; use toFixedUi 2021-07-08 10:16:39 -04:00
Tyler Shipe 0c82280855 fix trade history and refresh data bugs 2021-07-07 17:18:54 -04:00
Tyler Shipe c11890582d handle rounding errors 2021-07-07 16:38:04 -04:00
Tyler Shipe 6606dc1bff update tradeForm 2021-07-07 13:27:11 -04:00
Tyler Shipe 53163e07a8 add more account values 2021-07-07 00:34:21 -04:00
Tyler Shipe 54b6230314 fill in account asset values 2021-07-06 20:13:17 -04:00
Tyler Shipe a0ba6f44e8 update notifications, wire up account change modal 2021-07-06 18:04:20 -04:00
Tyler Shipe c355f7132e add Borrows page and health ratio 2021-07-05 11:03:57 -04:00
Riordan Panayides aea7b84b21 WIP stats page, market header oracle price 2021-07-03 02:18:57 +01:00
Tyler Shipe 671e50eba0 wip: max borrow calculations 2021-07-01 13:35:47 -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 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 0d64771bc2 show spot balances 2021-06-22 23:32:10 -04:00
Tyler Shipe 2a1e13a1b0 show current market event queue fills 2021-06-21 15:02:12 -04:00
Tyler Shipe c4ccc37110 more errors 2021-06-20 23:22:45 -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 eb42f877fd fix perp order book render 2021-06-18 19:19:17 -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 d3af1ac5b1 show open orders and wire up cancel order 2021-06-18 16:46:20 -04:00
Maximilian Schneider 60665d19fe cleanup orderbook types 2021-06-18 11:29:52 -04:00
Tyler Shipe 3df663614a use imported mangoClient in trade form; display userInfo component 2021-06-18 11:17:49 -04:00
saml33 b2fd941223 update prices endpoint url 2021-06-18 13:43:49 +10:00
Tyler Shipe a16608c95d implement deposit 2021-06-17 18:39:16 -04:00
Maximilian Schneider 12b69398d2 make bids & asks invariant between perp & spot, also reenable trade form 2021-06-17 18:37:03 -04:00
Maximilian Schneider 4d3dae3b1a load order books both from perp & spot 2021-06-17 17:07:10 -04:00
Tyler Shipe c6dab39463 add interest rates 2021-06-17 14:40:44 -04:00
Maximilian Schneider 275fafa4c4 refactor deposit modal 2021-06-17 14:03:47 -04:00
Maximilian Schneider 8aed0f0840 expose market config in store and switch between spot & perp 2021-06-17 01:38:49 -04:00
Tyler Shipe cb331fb2c7 comment out stuff in the ui so it works 2021-06-16 21:50:16 -04:00
Maximilian Schneider 6c4507cfc6 fix lint errors 2021-06-16 12:17:51 -04:00
Maximilian Schneider d31eb4b119 Merge remote-tracking branch 'origin/main' into stats-page 2021-06-16 12:07:13 -04:00
saml33 107d9cb883 use historic prices for total deposits/borrows 2021-06-15 20:24:40 +10:00
Maximilian Schneider 3dbbe87ded
fix data issues when switching markets (#31) 2021-06-12 22:03:05 -04:00
Tyler Shipe 3c65fc267e fix bug showing fee rebate in wrong balances col 2021-06-12 17:55:27 -04:00
Tyler Shipe 69bb0e02d3 add back US to countries list 2021-06-12 17:26:56 -04:00
Tyler Shipe 82678a3447 fix net balances 2021-06-12 16:57:09 -04:00
Tyler Shipe 09df840c6a use correct quote net balance 2021-06-12 15:23:15 -04:00
Tyler Shipe f6101964f2 clean up quote balance logic 2021-06-12 14:04:30 -04:00
Tyler Shipe 4476a2254e rebate gui hoster fees to users 2021-06-12 13:46:06 -04:00
saml33 c1638183db merge main 2021-06-11 11:12:35 +10:00
Tyler Shipe 821c24fa45 add additional blocked countries 2021-06-10 11:18:13 -04:00
saml33 a3d74a5488 total deposit/borrow value charts, new chart styles 2021-06-11 00:09:25 +10:00
Tyler Shipe f3a86a5a0c combine quote currency balances now that we're showing all markets 2021-06-09 11:52:32 -04:00
Tyler Shipe aa5355e70c fix pnl on accounts page 2021-06-07 13:28:54 -04:00
Tyler Shipe c86ee0157f add 20 sec interval to oracle price updates 2021-06-05 15:38:17 -04:00
Tyler Shipe b67f676383 add useOraclePrice hook and show in market header 2021-06-05 14:40:56 -04:00
Tyler Shipe a1d572048b removed leverage indicator on deposit and withdraw modals 2021-06-05 14:01:00 -04:00
Tyler Shipe eac4adc18f add main action buttons below balances 2021-06-05 12:14:34 -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
Maximilian Schneider 935129c45e
simulate withdraw operation so we can preview equity & coll (#10)
* show margin details in withdraw ui

Co-authored-by: saml33 <slam.uke@gmail.com>
2021-05-18 19:27:09 +03:00
saml33 8e4bd926a7
improve alert modal buttons and fix alerts not loading on connect wallet (#8) 2021-05-10 23:32:21 +03:00
saml33 806b527502
Bring alert details and notifications into the UI (#5)
* hook to get alerts, add triggered alerts to alerts list
* alerts page, count unseen alerts, clear alerts from nav view
* consolidate components, add custom value to alert modal dropdown, sort margin accounts alphanumerically
* ring bell when count increments and ping animation on count
* create/fetch alerts from store, filter by account, populate modal state from triggered alert
* fix alert sorting
* enable MA selection also for re-activate
2021-05-07 22:41:26 +03:00
Tyler Shipe 4f7e1b4990 format srm balances correctly when multiple mango srm accounts exist 2021-05-04 20:00:37 -04:00
Tyler Shipe 02b2fed058 better handle latency from wallet providers 2021-05-04 19:19:48 -04:00
Tyler Shipe 9755aef1be load orderbook for market 2021-05-01 16:30:05 -04:00
Tyler Shipe a0ef8f1e8e better handling of rounding issues in borrow and withdraw 2021-04-29 17:27:13 -04:00
Tyler Shipe 6fbd949b9f Use the vip-api endpoint 2021-04-29 13:42:53 -04:00
Tyler Shipe 3a5040f515 reduce call to rpc endpoint 2021-04-29 11:08:36 -04:00
Tyler Shipe 3ff07f452e combine market state keys 2021-04-29 10:38:28 -04:00
dd 8f07e6b8dd Put fetchMangoGroup on a 20s interval so interest rate changes are reflected in Margin Account summary 2021-04-26 15:17:57 -04:00
Tyler Shipe 16003fd8cf fix recent trades and add update delays after srm deposit and withdraw 2021-04-25 18:57:16 -04:00
Tyler Shipe 526236e46f fix console error with localstorage hook 2021-04-25 13:08:11 -04:00
Tyler Shipe 2d489b29c4 add Lagzda's alerts 2021-04-24 22:10:28 -04:00
Tyler Shipe d9eee98f5e increase refresh intervals 2021-04-21 11:21:00 -04:00
Tyler Shipe 404794575b fetch trade history after margin account is loaded 2021-04-20 17:52:13 -04:00
Tyler Shipe 7c4e913b50 use separate connections for websockets and one off transactions 2021-04-20 17:00:45 -04:00
Tyler Shipe 74d9f70dbf implement withdraw max with borrow 2021-04-20 10:09:25 -04:00
Tyler Shipe ea015a4dc9 fix saved grid layout and add formatting for some large nums 2021-04-17 20:04:18 -04:00
Tyler Shipe 22435a7185 Fix deposit and withdraw modals 2021-04-16 17:09:17 -04:00
Tyler Shipe 8d0019de47 fix for updating after cancel order 2021-04-15 18:45:26 -04:00
Tyler Shipe 50dd3b618e add small ux fixes from alpha feedback 2021-04-15 17:36:55 -04:00