Commit Graph

794 Commits

Author SHA1 Message Date
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
saml33 228ea6d59a change focus states to use focus-visible 2023-04-20 10:43:33 +10:00
saml33 70b1ddf8a4 fix mobile orderbook 2023-04-19 12:01:58 +10:00
tlrsssss ad6218ba87
Merge pull request #125 from blockworks-foundation/add-unsettled-spotmax
add unsettled balance to spot trade max
2023-04-18 18:10:51 -04:00
tlrsssss 80fffadd8b
Merge pull request #121 from blockworks-foundation/show-trade-executions
show trade executions on tv charts
2023-04-18 18:06:02 -04:00
saml33 57bcfb42b8 fix trade history type 2023-04-18 09:45:27 +10:00
saml33 03a94d4571 merge main 2023-04-18 09:17:23 +10:00
tjs 7f70915650 add funding tooltip to stats page 2023-04-17 17:34:33 -04:00
tjs ed0b6c2b17 update funding rate display 2023-04-17 12:26:05 -04:00
saml33 948c37ad59 merge main 2023-04-17 21:31:51 +10:00
saml33 51aed56b88 merge main and update tooltip 2023-04-17 12:13:50 +10:00
tjs 2a49dc1c5c fix bug in sorting trade history from event queue 2023-04-14 11:56:36 -04:00
microwavedcola1 b09596322e Revert "Revert "settle fees along with pnl""
This reverts commit bc113df1c3.
2023-04-13 16:55:32 +02:00
saml33 e141233d79 show trade executions on tv charts 2023-04-13 21:25:58 +10:00
saml33 207868fc82 add apr to perp funding rate display 2023-04-12 10:34:50 +10:00
tlrsssss 938b3d70c3
Merge pull request #90 from blockworks-foundation/share-positions
add share positions to twitter
2023-04-10 20:58:38 -04:00
tlrsssss d3b9b3ab08
Merge pull request #109 from blockworks-foundation/margin-toggle-size
retain size when toggling margin
2023-04-10 20:52:11 -04:00
saml33 4aa883d093 add unsettled balance to spot trade max 2023-04-10 21:43:50 +10:00
tjs 598c29fe13 use tradeform for checkboxes 2023-04-08 13:24:21 -04:00
saml33 b52499afcb curly braces isunownedaccount 2023-04-08 20:56:39 +10:00
tlrsssss 3d2b485cf7
Merge pull request #114 from blockworks-foundation/use-birdeye-prices
Use birdeye prices
2023-04-07 16:41:32 -04:00
saml33 cbbc1e6a1f implement pr feedback 2023-04-06 22:54:37 +10:00
saml33 ea80f1698a implement pr feedback 2023-04-06 13:24:29 +10:00
saml33 4e7cfaf501 round pnl to 2dp 2023-04-06 10:07:36 +10:00
saml33 a0e4efa5bb merge main 2023-04-06 09:21:31 +10:00
saml33 b0a4162d95 merge main 2023-04-06 09:19:58 +10:00
Adrian Brzeziński 3bf2a7d470
list tokens from ui (#107)
* governance wip

* governance store + helpers wip

* get voter weight

* on boarding realms component

* token list wip

* pyth oracle get

* adv fields

* hidden adv fields

* create proposal fcn + mangolana

* register market wip

* list market fixes wip

* translations

* register to register trustless + layout changes

* fix layout

* match switchboard oracle

* loaders

* validation

* style components

* change icon

* copy update

* translations keys

* fix translation

* fix warning create open book market

* fix

* fix transaltion

* fix

* fix

* fix pr

* fix onboarding translation

* fix token owner record error in console

* remove axios

* generic vsr idl

* fix pr

* remove mangolana

* small folder ref

* additional prop in onboarding component

* fix translation

* fix navbar

* change order of governance in navbar

* fix proposal index

* fix pr

* remove link without href for mint

---------

Co-authored-by: saml33 <slam.uke@gmail.com>
2023-04-05 23:59:30 +02:00
saml33 55adbe7602
Merge pull request #115 from blockworks-foundation/expand-perp-activity
expand perp trade activity feed details
2023-04-05 23:47:39 +10:00
saml33 ea121b34b5
Merge pull request #112 from blockworks-foundation/save-trade-checkboxes
save trade checkboxes to local storage
2023-04-05 20:51:03 +10:00
saml33 cb10276cf5 hide max size trade button when not connected 2023-04-05 15:25:25 +10:00
saml33 6aec6fd144 expand perp trade activity feed details 2023-04-05 14:21:01 +10:00
saml33 4b86b28f19 fix perp health impact when no base size 2023-04-04 15:01:41 +10:00
saml33 b5a30fbe89 merge main 2023-04-04 13:49:28 +10:00
saml33 d34fa4a503 add change to market select dropdown 2023-04-04 12:48:31 +10:00
tlrsssss 5c03151a2e
Merge branch 'main' into perp-market-details-modal 2023-04-03 21:43:58 -04:00
saml33 a5f310c07c use birdeye for spot market change 2023-04-04 09:20:59 +10:00
saml33 dbc3cb4f57 save trade checkboxes to local storage 2023-04-03 14:51:36 +10:00
saml33 4ff68b31a5 retain size when toggling margin 2023-04-03 09:52:00 +10:00
saml33 e0463a9863 fix trade max size button 2023-04-01 21:05:53 +11:00
tjs 6067dd1665 fix trade form issue with large num of decimals 2023-03-31 19:39:07 -04:00
tjs 4055ddd072 fix btc spot chart 2023-03-31 19:12:00 -04:00
tjs 7c59a1c4fa only call perp history if market is perp market 2023-03-31 16:49:33 -04:00
tjs a2b482cbe8 handle large decimals like the bonk chart 2023-03-31 16:29:06 -04:00
saml33 13d3a3d482 link to all markets from tables when not on trade page 2023-03-31 21:03:20 +11:00
tjs 582ecfa2b3 use clients settle candidate function 2023-03-30 15:42:05 -04:00