Commit Graph

938 Commits

Author SHA1 Message Date
tjs 06448a7e62 remove all favorites button 2023-08-17 15:33:15 -04:00
saml33 c079d170c8 fix mobile trade layout 2023-08-17 20:56:38 +10:00
tjs 4926560550 add try catch around the liq price 2023-08-16 11:11:02 -04:00
saml33 2761dd3b26 Revert "hide est liq price due to client error"
This reverts commit ea0b3129f7.
2023-08-16 11:06:06 -04:00
saml33 ea0b3129f7 hide est liq price due to client error 2023-08-16 12:11:58 +10:00
saml33 34312e2c59 add to swap and trade 2023-08-15 22:39:42 +10:00
tjs 60810ca2e4 improve speed of market swap 2023-08-14 00:26:39 -04:00
tjs 62a3f337e1 use latest client; upgrade to new signature status 2023-08-12 14:40:34 -04:00
tjs 2ff18afbf7 use latest packages 2023-08-11 02:30:44 -04:00
saml33 314893d972 add value colors to pnl tooltip 2023-08-10 14:45:30 +10:00
saml33 c96c7dd5ed
Merge pull request #223 from blockworks-foundation/lou/perp-positions-nav
Add unrealized pnl footer to perp positions
2023-08-10 14:23:19 +10:00
saml33 1b2a9e1660
Merge pull request #229 from blockworks-foundation/pepe-theme
pepe theme
2023-08-10 14:00:05 +10:00
saml33 cc3046dbac add the remaining theme elements 2023-08-10 13:31:47 +10:00
Lou-Kamades ac9ff9f08f
move ROE into PnL tooltip 2023-08-09 22:29:17 -05:00
tlrsssss 3cde93bf7f
Merge pull request #226 from blockworks-foundation/bottom-status-bar
add bottom status bar
2023-08-09 21:44:00 -04:00
Lou-Kamades a67af5bf32
add ROE and styling to PerpPositions footer 2023-08-09 13:49:32 -05:00
saml33 6256dc0630 fix trade info tabs container height md breakpoint 2023-08-09 15:57:26 +10:00
saml33 1d73cc2bff fix bottom page padding 2023-08-09 15:38:56 +10:00
saml33 52ecec2222 more pepe 2023-08-08 19:51:50 +10:00
tlrsssss e89cd94d0d
Merge pull request #227 from blockworks-foundation/ts/orderbook
scrollable orderbook
2023-08-07 10:59:48 -04:00
tjs f8d0b3e98e use offsetHeight 2023-08-07 10:41:14 -04:00
tjs 32c4734f21 add scrollable orderbook 2023-08-07 10:04:20 -04:00
saml33 f0923c9b3b fix trade history price rounding 2023-08-07 21:23:36 +10:00
tjs d3f5cd9045 update WS for trading view charts 2023-08-06 22:16:51 -04:00
tjs 94f823c91f Upgrade chart api endpoint 2023-08-06 21:54:41 -04:00
saml33 d7657cbb5d merge main 2023-08-05 20:48:58 +10:00
Lou-Kamades 95bc34eb72
add unrealized pnl to perp positions 2023-08-04 02:20:58 -05:00
saml33 d0505269b0 add search to spot market select dropdown 2023-08-01 14:49:11 +10:00
saml33 9f57fb0d97 fix orderbook tooltip side 2023-07-31 09:30:37 +10:00
saml33 f5b6544093 sort trade history 2023-07-28 15:04:38 +10:00
saml33 ed1f680409 merge main 2023-07-26 09:27:17 +10:00
saml33 256714b6b4
Merge pull request #219 from blockworks-foundation/orderbook-row-tooltip
add info on orderbook row hover
2023-07-26 09:08:39 +10:00
saml33 5b153c453b
Merge pull request #217 from blockworks-foundation/market-swap-trade-form
add missing elements to market swap trade form
2023-07-26 09:07:23 +10:00
saml33 02857d0f2d add higher groupings to orderbook 2023-07-25 21:51:04 +10:00
saml33 c0683d9ea3 fix width 2023-07-25 20:51:46 +10:00
saml33 fe97719530 add info on orderbook row hover 2023-07-25 20:43:19 +10:00
saml33 20b9c1ba9e add loader 2023-07-25 13:15:00 +10:00
saml33 d5bf0268b4 add margin to slider 2023-07-25 13:08:43 +10:00
saml33 7587eb2e00 disable button when too much size 2023-07-25 12:56:28 +10:00
saml33 a151aa5190 add missing parts to market swap trade form 2023-07-25 12:35:27 +10:00
saml33 01f03022bf give depth chart its own tab 2023-07-25 08:52:09 +10:00
saml33 3c492c893e sort markets by volume 2023-07-24 22:14:45 +10:00
saml33 84ecc51d87 merge main 2023-07-24 08:15:46 +10:00
saml33 8cf2da402c merge main 2023-07-23 21:06:29 +10:00
tjs abc5984647 use latest next-themes 2023-07-21 14:50:06 -04:00
tjs 3d8588d434 use latest prettier 2023-07-21 14:47:53 -04:00
saml33 1c5060d007 add 0 values when no change 2023-07-21 22:20:12 +10:00
saml33 eb8b06afcc use markets api data 2023-07-21 22:03:44 +10:00
saml33 226d610bbf
Merge pull request #193 from blockworks-foundation/depth-chart
orderbook depth chart
2023-07-21 20:01:41 +10:00
saml33 f0bf8f2aa1 fixes and show on mobile 2023-07-21 10:09:34 +10:00
tjs 4bb2c0016e migrate to wallet-adapter only; use autoconnect 2023-07-20 19:08:04 -04:00
saml33 6954082b0b remaining fixes 2023-07-20 20:40:27 +10:00
saml33 35b5ba1f71 partially fix layout 2023-07-20 15:30:35 +10:00
saml33 8169aeef95 merge main 2023-07-20 13:52:07 +10:00
saml33 960e90393b merge main 2023-07-19 13:53:28 +10:00
tjs 848286d947 add trade page swap summary details 2023-07-18 14:55:13 -04:00
tjs e5945b60e2 Merge branch 'main' into ts/trade-pg-jup 2023-07-18 13:23:07 -04:00
tjs 31e1e3f597 useMemo in market close modal 2023-07-18 13:01:14 -04:00
saml33 e8cdbd0437 checkout orderbook liquidity before market close 2023-07-18 22:13:08 +10:00
saml33 d8be43ee7a merge main 2023-07-18 11:24:13 +10:00
saml33 a1fbe18bf1 remove orderbook subscription hook and other fixes 2023-07-18 11:18:01 +10:00
microwavedcola1 eecfd8c5e2 make consistent with other sim health ration function usages
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-07-17 15:25:46 +02:00
tjs e478d6405a use jupiter on trade page 2023-07-16 23:41:13 -04:00
saml33 2c3f6208fe
Merge pull request #202 from blockworks-foundation/fix-24h-change
fix 24h spot change
2023-07-17 08:28:58 +10:00
tjs c5080c6132 dont recreate TV chart on every mkt change 2023-07-14 10:58:53 -04:00
saml33 2b8043baca fix 24h spot change 2023-07-14 15:47:05 +10:00
saml33 c2aa4676b0 more labels 2023-07-14 08:53:50 +10:00
saml33 6796e04f3a adjust layouts 2023-07-13 20:37:41 +10:00
saml33 987f4f6fa1 reference labels 2023-07-13 13:59:03 +10:00
saml33 955b4f2488 reference lines 2023-07-13 10:32:22 +10:00
tlrsssss 2fe9ab4830
Merge pull request #200 from blockworks-foundation/ts/glitch-tip
Add glitch tip
2023-07-12 15:35:47 -04:00
Riordan Panayides 4df85997a1 Disable orderbook feed 2023-07-12 19:01:29 +01:00
tjs eca8ae6638 capture trade page exceptions 2023-07-12 12:32:12 -04:00
saml33 3abd612b47 zoom, reference lines, layout 2023-07-13 00:37:18 +10:00
saml33 b053906c64 add notional value to mobile open orders 2023-07-09 20:41:20 +10:00
saml33 da346e2271 add notional value to perp unexpanded mobile view 2023-07-09 20:06:17 +10:00
saml33 f6b3d2c5e7
Merge pull request #182 from blockworks-foundation/trade-hot-keys
Trade Hot Keys
2023-07-09 11:37:42 +10:00
Adrian Brzeziński b07aa77f1d
fix (#195) 2023-07-06 16:24:07 +02:00
saml33 a34103ee2b fix manual refresh mobile padding 2023-07-06 23:16:19 +10:00
saml33 9b2b84a162 token logo backgrounds 2023-07-06 22:08:10 +10:00
saml33 675cc6d274 load oo account for settle candidates 2023-07-06 19:49:16 +10:00
saml33 a3db18d6e1 Merge branch 'main' into depth-chart 2023-07-06 08:35:14 +10:00
saml33 866afe27f8
Merge pull request #194 from blockworks-foundation/custom-token-logos
add custom icons
2023-07-06 08:24:59 +10:00
tlrsssss 75fce54638
Merge pull request #191 from blockworks-foundation/positions-stats
add largest positions and closest to liquidation
2023-07-05 12:20:41 -04:00
tlrsssss 77ecc92987
Merge pull request #189 from blockworks-foundation/improve-market-loading
improve market loading on trade page
2023-07-05 12:13:10 -04:00
tlrsssss e444490b81
Merge pull request #190 from blockworks-foundation/preview-entry-price
show avg entry price in perp trade summary
2023-07-05 12:12:32 -04:00
saml33 462d6210d6 add custom icons 2023-07-05 14:40:47 +10:00
saml33 034ab5071e merge main 2023-07-05 10:13:19 +10:00
saml33 775f2f6ef5 bump client and mobile 2023-07-05 10:05:03 +10:00
saml33 fe0e6eee3d fix close perp on mobile and some styling fixes 2023-07-03 23:17:17 +10:00
saml33 a78e222110 move data fetching to store 2023-07-03 22:29:10 +10:00
saml33 aa4958f35a subscribe to orderbook for depth chart 2023-07-03 15:55:25 +10:00
saml33 89a192041e console.log connection 2023-07-03 12:17:11 +10:00
saml33 1de717f74c update perp logos 2023-07-03 11:52:51 +10:00
saml33 c7031f9936 fix perp market logos 2023-07-03 11:04:46 +10:00
saml33 7afcfb897b change to limit order on book price click 2023-07-01 20:28:31 +10:00
saml33 239cb1990b update trade side display in tables 2023-07-01 20:07:15 +10:00
saml33 1d6c5da71b show avg entry price in perp trade summary 2023-06-30 21:14:35 +10:00
saml33 50e40aee90 hide avg entry price on trade summary. calc not correct 2023-06-30 14:37:01 +10:00
saml33 fe7293dd45 improve market loading 2023-06-30 14:00:28 +10:00
saml33 03fdc2ae10 render basic chart to component 2023-06-30 13:05:41 +10:00
saml33 cd98c98e23 add avg entry price to perp trade summary 2023-06-29 21:38:32 +10:00
saml33 3c9b894841 align trade side ui to perp positions 2023-06-29 11:04:53 +10:00
saml33 f31f099cc1 fix roe calc 2023-06-28 21:35:42 +10:00
saml33 830a7cfed7 fix label 2023-06-28 21:17:43 +10:00
saml33 2c4a1cf772 fix ROE and update client 2023-06-28 20:50:27 +10:00
saml33 febb6a7ad3 calc liq price outside of the positions table 2023-06-28 12:10:47 +10:00
saml33 b76df3c87c new layout and add liq price 2023-06-27 12:43:15 +10:00
tjs ce13f685a3 Merge branch 'main' into trade-hot-keys 2023-06-26 12:58:10 -04:00
saml33 a8fd16eb29 errors and translations 2023-06-24 22:44:15 +10:00
saml33 6337b696e7 form validation 2023-06-23 13:37:34 +10:00
saml33 737a01a815
Merge pull request #181 from blockworks-foundation/show-unrealized-pnl
use unrealized as primary value for perp pnl
2023-06-23 10:16:36 +10:00
Riordan Panayides c11025a227 Fix spot orderbook update filtering 2023-06-22 19:29:40 +01:00
saml33 daaa1fcfeb use unrealized as primary value for perp pnl 2023-06-22 21:17:35 +10:00
saml33 8ed973a063 place order on hot key 2023-06-22 10:48:15 +10:00
microwavedcola1 dd7716d99a upgrade to latest mango-v4 client
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-06-21 15:30:45 +02:00
saml33 53a5b4e619 do not close menu on favorite click 2023-06-21 09:40:51 +10:00
saml33 9976698c67 default market dropdown category to selected market type 2023-06-21 09:30:31 +10:00
saml33 0d85a6ff12 filter markets dropdown 2023-06-19 15:44:41 +10:00
Riordan Panayides 3e5b91fb96 Fix perp sorting 2023-06-17 10:55:34 +01:00
saml33 4f12c9e9cf fix leading period on trade form 2023-06-15 22:32:40 +10:00
saml33 2e3a0e8a2e fix order value 2023-06-15 22:18:44 +10:00
saml33 78f2544ffe fix spot price quote token display 2023-06-15 21:24:54 +10:00
saml33 2a9d74de15
Merge pull request #169 from blockworks-foundation/manual-refresh
add manual refresh button
2023-06-15 20:56:53 +10:00
saml33 2e4852e965 use soon badge on perp stats page 2023-06-15 10:49:16 +10:00
riordanp b5f6bba803
Disable trading for markets where oracle was never active (#171) 2023-06-15 00:02:40 +01:00
riordanp a229d55ed6
Add soon label to perp markets where oracle was never active (#170) 2023-06-14 18:19:39 +01:00
saml33 5f90821a22 add manual refresh button 2023-06-14 11:12:28 +10:00
saml33 6945707c11 merge main 2023-06-08 13:49:49 +10:00
saml33 f13acf6bd0 add tv chart meme and support changing fonts 2023-06-07 22:45:09 +10:00
saml33 9d14bc5b8b add chart easter egg functionality 2023-06-07 16:04:38 +10:00
saml33 9ffd337fe0 use themeData for vars 2023-06-07 15:00:59 +10:00
saml33 258131aa5c sort perp positions by notional value 2023-06-06 09:59:45 +10:00
saml33 53159a372b add perp volume to trade page 2023-06-05 11:06:03 +10:00
saml33 1a6e1d5b6d fix perp position table tize click 2023-06-05 10:19:19 +10:00
saml33 095728986c more bonk 2023-06-02 16:05:08 +10:00
saml33 6d04ac7378 comment out perp volume 2023-06-01 13:07:34 +10:00
saml33 aaa4c04adc add perp volume to trade header 2023-06-01 10:17:31 +10:00
saml33 29070b1fa4 add spot market volume to stats 2023-05-31 22:15:50 +10:00
saml33 97b331df27 tv styles 2023-05-31 14:38:15 +10:00
saml33 eefc1f374d add bonk theme 2023-05-31 13:03:53 +10:00
saml33 fe5379f60a add spot market volume to trade header 2023-05-31 10:05:02 +10:00
saml33 166d7eafe1 remove stable price from tv chart 2023-05-24 13:32:02 +10:00
saml33 aff58c7e70 improve order line drawing 2023-05-24 12:05:13 +10:00
saml33 846e574a71 use long/short for perp order lines 2023-05-24 11:22:09 +10:00
saml33 88614f8bd7 use perp side badge for perp open orders 2023-05-24 10:34:26 +10:00
tlrsssss 09e10671b4
Merge pull request #155 from blockworks-foundation/edit-tv-order-modal
add custom modal when dragging order line
2023-05-23 17:13:45 -04:00
tlrsssss f7d69b90b2
Merge pull request #153 from blockworks-foundation/align-tooltip-styles
align tooltip styles
2023-05-23 17:11:13 -04:00
saml33 b487c51db5 add custom modal when dragging order line 2023-05-23 21:48:26 +10:00
saml33 62054f0758 fix sell/short button 2023-05-23 13:25:03 +10:00
saml33 e22719c196 add divider to tv limit price menu item 2023-05-23 09:46:47 +10:00
saml33 dfd3e1b0e9 change button case to match menu 2023-05-22 23:03:21 +10:00
saml33 b64af38f7d set limit price from right click tv chart 2023-05-22 22:51:27 +10:00
tjs cfa95dfd9c update oracle component with last price after switching mkts 2023-05-14 12:43:42 -04:00
saml33 004964bde4 spot margin off by default and show borrow amount in trade summary 2023-05-14 23:07:06 +10:00
saml33 d02a96b131 fix perp slider rounding 2023-05-13 21:41:42 +10:00
saml33 ebeccd8df5 fix spot slider rounding 2023-05-13 21:25:50 +10:00
saml33 46b2e53902 fix trade summary order value 2023-05-13 20:44:22 +10:00
saml33 4ede5b9a6c align tooltip styles 2023-05-12 14:08:06 +10:00
saml33 e4b85b4d5e link to chart from funding tooltip 2023-05-12 13:46:59 +10:00
riordanp 5b0eef685c
Use ref for Orderbook feed to prevent multiple connections, add settings tooltip (#150)
* Use ref for orderbook feed, enable if unset, prettify logs

* Add tooltip to orderbook feed setting
2023-05-10 10:53:55 +01:00
riordanp 25ea31beec
Add setting to disable orderbook feed (#148)
Co-authored-by: tlrsssss <tjshipe@gmail.com>
2023-05-07 12:53:22 +01:00
tlrsssss 97fbb42588
Merge pull request #126 from blockworks-foundation/save-tv-charts
save tv charts
2023-05-05 14:20:36 -04:00
saml33 5b88633501 improve market select link styles 2023-05-04 11:41:18 +10:00
tjs 2494ba2022 fix datafeed crash 2023-05-03 14:26:26 -04:00
saml33 c260d7782f save tv chart drawings 2023-05-03 13:15:37 -04:00
Riordan Panayides cbb88dcbe5 Temporarily disable orderbook feed 2023-05-03 15:29:01 +01:00
tjs fb1199dc83 show more details on stats table 2023-05-02 13:47:26 -04:00
Riordan Panayides eb1d17df9f Reject orderbook updates not for current market 2023-05-01 17:13:37 +01:00
saml33 cf0a5e7e59 add oracle provider to market details modals 2023-05-01 14:42:29 +10:00
tjs 1f30784930 fix bug with decimal in trade form 2023-04-28 14:39:22 -04:00
saml33 506433e539 fix market header 24h change 2023-04-28 22:22:40 +10:00
saml33 3e013044ea remove console logs 2023-04-28 22:13:11 +10:00
Adrian Brzeziński b6dfb42532
fix (#143) 2023-04-27 20:27:56 +02:00
Riordan Panayides 24b2b406b7 Fix oracle warning for BONK 2023-04-27 19:01:52 +01:00
tlrsssss 8fb5c17d92
Merge pull request #137 from blockworks-foundation/pan/orderbook-feed-v2
Use websocket feed for Orderbook
2023-04-27 13:55:30 -04:00
riordanp d7e74fb874
Merge branch 'main' into pan/orderbook-feed-v2 2023-04-27 18:02:42 +01:00
Riordan Panayides 177229785e Merge branch 'pan/oracle-info' of github.com:blockworks-foundation/mango-v4-ui into pan/oracle-info 2023-04-27 17:48:37 +01:00
Riordan Panayides 5104439f80 i18n 2023-04-27 17:43:36 +01:00
riordanp f54d8287a6
Merge branch 'main' into pan/oracle-info 2023-04-27 17:25:26 +01:00
Riordan Panayides c5dd4a0e82 Add warning state if oracle is stale, convert last updated to human readable format 2023-04-27 17:23:18 +01:00
saml33 4d261b61a7 add token settings table 2023-04-27 22:11:20 +10:00
saml33 727cf53d7d add modal for spot market details 2023-04-27 13:39:49 +10:00
saml33 4eea086ef6 fix file name extension 2023-04-27 12:36:52 +10:00
tlrsssss bdc341aeab
Merge pull request #138 from blockworks-foundation/orderbook-formatting
handle large and small numbers in orderbook
2023-04-26 13:14:24 -04:00
saml33 9609a2bd27 fix trade form icon loading position 2023-04-26 12:54:55 +10:00
saml33 d1620ced49 handle large and small numbers in orderbook 2023-04-26 10:58:33 +10:00
saml33 724680ea11 fix quote size from max size button 2023-04-26 10:23:14 +10:00
Riordan Panayides f122994874 Add info tooltip to oracle price 2023-04-25 21:36:18 +01:00
riordanp 5da195233e
Merge branch 'main' into pan/orderbook-feed-v2 2023-04-25 16:57:02 +01:00
Riordan Panayides 0c6960dd9d Remove errant logs 2023-04-25 16:40:45 +01:00
Riordan Panayides d3b08eb08d Update mango-feeds 2023-04-25 16:25:35 +01:00
saml33 2c2544dbb0 fix bonk/sol ui issues 2023-04-25 22:41:23 +10:00
Riordan Panayides 43c3368c25 Use production url 2023-04-24 19:23:12 +01:00
Riordan Panayides f751882026 Compute funding rate from L2 data 2023-04-24 19:03:11 +01:00
saml33 b0f1619434 reduce horizontal padding in market header 2023-04-24 21:45:30 +10:00
saml33 ab97ac9738 fix orderbook grouping 2023-04-24 20:17:01 +10:00
Riordan Panayides 56ca927c40 Use client library for orderbook 2023-04-22 18:35:57 +01:00
saml33 a89d528709 align linkbutton styles 2023-04-21 12:32:20 +10:00
saml33 1750b865ca remove inline default-transition class 2023-04-20 11:12:45 +10:00