Commit Graph

794 Commits

Author SHA1 Message Date
tylersssss 6ec8f9d262
Merge pull request #83 from blockworks-foundation/swap-reduce-only
handle swap reduce only
2023-02-10 11:34:15 -05:00
tylersssss d0e937b559
Merge pull request #78 from blockworks-foundation/pan/candles
Add basic perp ohlcv feed
2023-02-10 11:11:28 -05:00
saml33 f4209c3f88 merge main 2023-02-10 21:38:05 +11:00
saml33 c79045aaa0 align trade page tab order 2023-02-10 20:09:42 +11:00
saml33 c3d8f0af68 Merge branch 'main' into stable-price-tv-line 2023-02-10 16:09:02 +11:00
saml33 49f203f7e7 fix market change values 2023-02-10 14:20:46 +11:00
tjs efdd8a8934 fix typecheck errors 2023-02-09 17:04:57 -05:00
tjs 6277984325 use latest client 2023-02-09 16:23:44 -05:00
saml33 9c0cb6e6c1 add stable price line to tv chart 2023-02-09 22:41:15 +11:00
saml33 ed79cf7452 round spread to ticksize 2023-02-09 13:08:17 +11:00
saml33 8fa244a09b allow positions and trade history tables to scroll horizontally 2023-02-09 13:01:31 +11:00
Adrian Brzeziński 1ed50b9616
Feature/kline websockets (#84)
* web sockets

* websockets kline chart

* disconnect socket kline

* fix

* fixes
2023-02-09 02:40:34 +01:00
saml33 d838d39a57 fix perp entry price rounding 2023-02-09 12:37:30 +11:00
saml33 5388035d33 handle swap reduce only 2023-02-09 11:31:53 +11:00
saml33 2d9e73d207 fix perp position table size click 2023-02-08 22:29:03 +11:00
saml33 fdd0c97fcd add missing translation keys 2023-02-08 21:04:20 +11:00
saml33 21896ca2c3 add order lines to tv chart 2023-02-08 20:58:03 +11:00
tylersssss 971533009d
Merge branch 'main' into update-tab-count 2023-02-07 13:54:47 -05:00
tjs 4564c17ec4 filter mngo perp mkt; fix grouping tooltip 2023-02-03 11:04:29 -05:00
tjs e16107576f increase orderbook depth 2023-02-03 10:28:39 -05:00
tjs 7126f00c44 add a memo for selected market 2023-02-01 18:05:01 -05:00
Riordan Panayides 541a0114c7 Add basic perp ohlcv feed 2023-02-01 20:22:09 +00:00
saml33 b5e9229d65 update tab count on disconnect 2023-02-01 15:49:37 +11:00
saml33 68118a20b1 merge main 2023-01-30 11:53:05 +11:00
saml33 991d36aa62 fix trade history bug 2023-01-29 21:22:09 +11:00
saml33 7523ae357d fix table header alignment 2023-01-29 21:12:58 +11:00
saml33 f6e8ed1557 merge main 2023-01-26 10:07:25 +11:00
tjs 9623341498 use connection from store for orderbook changes 2023-01-25 17:28:26 -05:00
saml33 6a9a40f95e remove trimdecimals 2023-01-25 14:11:42 +11:00
saml33 f8f022fe9a only use floortodecimal for unformatted values 2023-01-25 13:54:06 +11:00
saml33 ebf9bddfc9 remove formatfixeddecimals 2023-01-25 11:54:24 +11:00
tjs 139ba30675 dashboard tweaks 2023-01-24 13:08:35 -05:00
saml33 e218adef0d add to trade history 2023-01-24 15:44:50 +11:00
saml33 65cef0fb71 add to unsettled table 2023-01-24 14:58:14 +11:00
saml33 8cbfe1dc59 add to positions table 2023-01-24 14:55:47 +11:00
saml33 7f597681fd add to maxamountbuttons 2023-01-24 14:04:05 +11:00
tjs cea7ee54ed fix btc tv data url 2023-01-23 12:47:34 -05:00
saml33 0e98231224 remove leading zero from recent trades time 2023-01-23 23:01:48 +11:00
tjs bae363a6fa temporary charts for perps 2023-01-23 00:25:46 -05:00
saml33 454a1900d7 remove references to soETH 2023-01-23 13:20:44 +11:00
saml33 3e932635bf merge main 2023-01-23 13:08:08 +11:00
saml33 450100328d add success animation to market close 2023-01-23 13:03:09 +11:00
saml33 e08cea4a35 add positions to account page 2023-01-22 22:27:04 +11:00
saml33 3dbae5a1a9 fix bottom bar issue on trade page 2023-01-22 20:27:04 +11:00
tjs 63909e2bb7 improve use query config options 2023-01-20 11:13:03 -05:00
tjs 9c8ef98cfd remove console logs 2023-01-20 08:53:15 -05:00
tjs b974a84461 move trade history parsing out of JSX 2023-01-20 08:24:35 -05:00
saml33 0952fde644 merge main 2023-01-20 22:38:56 +11:00
saml33 b13cea05e6 use usdc unit for unsettled perp 2023-01-20 22:17:50 +11:00
saml33 d3cdd2c301 fix trade history date column alignment 2023-01-20 22:09:37 +11:00
saml33 1231a0be44 fix trade success animation for trade 2023-01-20 22:03:31 +11:00
saml33 dc584ed0fb fix perp max button 2023-01-20 15:45:44 +11:00
tjs 9f129d9dff remove mngo-perp 2023-01-19 23:17:43 -05:00
tjs dd07d08d1f add dollar sign and catch errors for coingecko 2023-01-19 23:15:11 -05:00
saml33 1fc9b0ce66 fix open orders inputs 2023-01-20 15:06:14 +11:00
tjs 3f431676ef fix trade history when swapping mango accounts 2023-01-19 22:44:53 -05:00
saml33 a95df1b248 align market close modal button to other modals 2023-01-20 14:43:44 +11:00
saml33 71b40fbaf5 fix table states for unowned account 2023-01-20 14:10:15 +11:00
tjs 9d495f2e46 add onclose to market close modal 2023-01-19 21:24:12 -05:00
tjs 458a70fc9d perp market close modal 2023-01-19 21:14:51 -05:00
saml33 211bd40de1 add connect wallet empty states 2023-01-20 12:45:08 +11:00
saml33 2e555ba5dc add size prop to icon buttons 2023-01-20 10:49:49 +11:00
saml33 91d916c858 use icon button for view counterparty 2023-01-20 10:44:58 +11:00
tjs f1db6f2de8 trade page breakpoint fixes 2023-01-19 16:25:19 -05:00
tjs a3f1edd457 fix min decimals in trade form 2023-01-19 16:01:46 -05:00
tjs 3bc8b87830 fix localstorage default key typo 2023-01-19 15:41:11 -05:00
tjs 009b0cb59e add view counterpart to trade history table 2023-01-19 14:36:44 -05:00
saml33 6ef115f791 merge main 2023-01-19 20:49:57 +11:00
tjs e7fa818e65 fix recent trades for perp markets 2023-01-19 00:18:06 -05:00
tjs a0c24f11c5 fix trade history 2023-01-18 23:35:57 -05:00
saml33 aafa6c8e0c merge main 2023-01-19 15:35:36 +11:00
saml33 270c74b9db toggle tradingview on mobile 2023-01-19 13:42:29 +11:00
tylersssss e9a284619b
Merge branch 'main' into pan/change-transaction-log-url 2023-01-18 19:11:02 -05:00
tylersssss ac2a50c1fc
Merge branch 'main' into pan/fix-trade-history 2023-01-18 19:07:59 -05:00
tylersssss 3c83103b30
Merge pull request #62 from blockworks-foundation/paginate-trade-history
paginate trade history
2023-01-18 18:58:35 -05:00
Riordan Panayides 79821f5216 Fix side badge for combinedTradeHistory trades 2023-01-18 18:42:54 +00:00
Riordan Panayides 4d5230cf05 Replace references to mango-transaction-log 2023-01-18 13:21:01 +00:00
saml33 9d8f804b75 fix token logo symbol matching 2023-01-18 22:18:57 +11:00
saml33 bf626cc8ef add recent trade volume alert 2023-01-18 16:06:00 +11:00
tjs e5dff1c8c3 use latest client; update perp positions table with new pnl calcs 2023-01-17 18:31:58 -05:00
tjs 71d0623002 remove mngo-perp from perp list on alpha 2023-01-16 23:49:00 -05:00
tjs 3a59e73416 only show reduce only for perps 2023-01-16 23:16:25 -05:00
tjs 41e8172581 add reduce only to perp trade form 2023-01-16 23:00:42 -05:00
tjs fd048ecfc6 fix perp position side badge 2023-01-16 22:50:31 -05:00
tjs 23fc84b202 fix reduce only bug; better acct loading; increase ob depth 2023-01-16 16:09:21 -05:00
saml33 8736d7991e add useMargin to max trade size button 2023-01-16 14:58:01 +11:00
saml33 fa52bffc66 fix percentage sign 2023-01-16 12:19:01 +11:00
saml33 bdd03b0e0c merge main 2023-01-15 20:58:07 +11:00
saml33 ea636b8df4 add missing icon 2023-01-15 20:53:34 +11:00
tjs 58a113b7cc handle use margin checkbox for serum trade form 2023-01-15 00:52:22 -05:00
tjs 38a3db06df refactor to use hook useSelectedMarket 2023-01-15 00:01:30 -05:00
saml33 cb96bb1823 allow tables to scroll horizontally 2023-01-13 12:46:36 +11:00
saml33 297f653e0f add trade history to account tabs 2023-01-13 12:34:21 +11:00
saml33 9d94828aac paginate trade history 2023-01-13 11:16:10 +11:00
tjs ad634a46fa prevent rerendering orderbook due to trade form changes 2023-01-12 16:02:23 -05:00
tylersssss c3f107820e
Merge branch 'main' into trade-success-animation 2023-01-11 13:11:03 -05:00
tylersssss 1b2a4f231e
Merge pull request #50 from blockworks-foundation/recent-trades-ratio
add buy/sell ratio to recent trades
2023-01-11 12:55:44 -05:00
saml33 66c635b00c update to use volume 2023-01-11 12:00:26 +11:00
tjs 3019a1d555 add perp trade history 2023-01-10 12:36:29 -05:00
saml33 93738b0dcc fix formatfixeddecimals rounding 2023-01-09 12:50:46 +11:00
tjs 59b724e431 add openbook history 2023-01-06 19:26:06 -05:00
tjs 89e9ac2d61 round decimals in unsettled table 2023-01-06 14:41:18 -05:00
saml33 02e3e6d132 fix country not allowed button 2023-01-06 21:55:51 +11:00
saml33 da78529b2e more rounding fixes 2023-01-06 21:32:54 +11:00
saml33 209de8a666 repay and withdraw formatting and sol balance warning spacing 2023-01-06 20:14:54 +11:00
saml33 085aceb3eb round max amount buttons 2023-01-06 15:10:25 +11:00
tjs 9865e85116 add mango account pk and address to hook 2023-01-05 23:01:03 -05:00
saml33 65e6afc363 show correct borrow fee unit and remove unnecessary class 2023-01-06 13:03:58 +11:00
tjs a76a3f93ba Merge branch 'main' into alpha 2023-01-05 14:32:15 -05:00
saml33 8ddb4e52c1 add buy/sell ratio to recent trades 2023-01-05 20:38:34 +11:00
saml33 9e45571b51 add swap to token list actions 2023-01-05 13:50:36 +11:00
saml33 dbe1e4c6f4 pass step to spot slider 2023-01-05 12:09:43 +11:00
saml33 3cfa294cde hide settle funds button for unowned account 2023-01-04 13:38:17 +11:00
saml33 d4fb1f24a6 load unowned open orders 2023-01-04 13:32:42 +11:00
saml33 c08acf292c check for mangoaccount instead of connected 2023-01-04 13:06:00 +11:00
tjs 7a324c68cd Merge branch 'main' into alpha 2023-01-03 20:58:53 -05:00
tylersssss 9e4877792d
Merge pull request #49 from blockworks-foundation/connect-buttons
add active connect buttons
2023-01-03 18:25:55 -05:00
tjs a045b90c70 fix notional label 2023-01-03 17:27:49 -05:00
saml33 b2257d2ca1 add active connect buttons 2023-01-03 22:06:37 +11:00
saml33 e419752d49 improve account page balance table sort 2023-01-03 20:20:34 +11:00
saml33 52744145b4 fix recent trades sounds 2023-01-03 14:14:23 +11:00
saml33 63ae4a09cf use select for notification position settings 2023-01-03 12:35:54 +11:00
saml33 f3bc81f95b new user setup image 2023-01-03 11:30:19 +11:00
tjs 9345224054 move tooltip placement 2023-01-02 17:48:05 -05:00
tjs 8c40443579 add reset button to orderbook 2023-01-02 17:41:16 -05:00
Adrian Brzeziński d29c641058
Merge pull request #48 from blockworks-foundation/feature/datafeed-v2
Feature/datafeed v2
2023-01-02 21:36:23 +01:00
tjs 09c4d817e7 improve slippage calc for spot trades 2023-01-02 14:51:09 -05:00
Adrian Brzeziński ef78b8eb3b common data feed for bars 2023-01-02 20:50:03 +01:00
saml33 3c91bbf1ef add swap success animation to trade 2023-01-02 23:19:30 +11:00
tjs 740adad921 disable trade form button if size field is empty 2022-12-30 14:50:59 -05:00
tjs 822554f287 show empty state for order value 2022-12-30 13:26:45 -05:00
Adrian Brzeziński 2b6ee4e70c fix kline defaults 2022-12-29 19:43:14 +01:00
tylersssss 49bf8a7a76
Merge pull request #43 from blockworks-foundation/trade-form-ux
trade form ux improvements
2022-12-29 00:49:16 -05:00
tjs 3664a30462 handle trading view errors when changing markets 2022-12-27 19:24:55 -05:00
tjs ab1ba7ca05 fix perp positions count 2022-12-27 18:34:40 -05:00
tjs d603d6e973 show the count next to perp positions; use latest client 2022-12-27 18:15:57 -05:00
saml33 ea2ef43b41 move leverage calculation to components 2022-12-26 22:58:17 +11:00
saml33 743a96f88c Merge branch 'main' into trade-chart-styling 2022-12-26 21:13:46 +11:00
saml33 359ddc19b4 style kline chart 2022-12-26 21:13:07 +11:00
tjs 1f1d3a0e20 Merge branch 'alpha' into main 2022-12-24 11:39:11 -05:00
tjs 5d53090a1c fix stats page issues 2022-12-24 11:38:25 -05:00
saml33 916089f0fa trade chart selection settings 2022-12-22 21:04:38 +11:00
saml33 201a8ad62a trade form ux improvements 2022-12-22 15:19:00 +11:00
Adrian Brzeziński 2ef6070991 do not use translated values in settings fix 2022-12-21 23:33:26 +01:00
Adrian Brzeziński 28101143be default trading view 2022-12-21 18:48:39 +01:00
Adrian Brzeziński ca1bbefafc fix 2022-12-21 18:31:25 +01:00
Adrian Brzeziński b63ed6ba4c Merge branch 'main' into feature/kline-charts-spot 2022-12-21 17:55:02 +01:00
Adrian Brzeziński e98c67b769 api migrate 2022-12-21 12:21:04 +01:00
saml33 6882a520ac trade history mobile 2022-12-21 15:48:41 +11:00
saml33 b2bb1b685b horizontal scroll trade tabs on overflow 2022-12-21 15:04:08 +11:00
saml33 3cc5b759d3 add edit order form to mobile 2022-12-21 14:36:40 +11:00
saml33 da1ea7c5ce give open orders more horizontal space on mobile 2022-12-21 14:11:38 +11:00
saml33 18cd8d7bc1 fix edit order button on mobile 2022-12-21 13:56:16 +11:00
Adrian Brzeziński b60c61f181 Merge branch 'main' into feature/kline-charts-spot 2022-12-20 21:31:57 +01:00
tjs c6a8806c26 hide perps correctly 2022-12-20 13:05:53 -05:00
tjs 4780469cd4 use env vars to hide perps 2022-12-20 09:48:45 -05:00
saml33 0e64de2993 hide onboarding tours 2022-12-20 20:13:24 +11:00
tjs 71b962826e more horizontal overflow fixes 2022-12-20 00:58:55 -05:00
tjs 9efd48f12f try to make this clearer 2022-12-20 00:27:05 -05:00
tjs 216164b47c remove scrollbar on trade page 2022-12-20 00:20:06 -05:00
tjs dec8009263 only show spot markets 2022-12-19 20:12:01 -05:00
tjs 2f8bff16ef Merge branch 'birdeye' into main 2022-12-19 19:57:40 -05:00
saml33 2d75701050 align trade history table styles 2022-12-20 11:42:13 +11:00
tjs d3a152ca04 Merge branch 'main' into birdeye 2022-12-19 19:39:29 -05:00
Adrian Brzeziński 8bc70fe532 Merge branch 'main' into feature/kline-charts-spot 2022-12-20 01:38:52 +01:00
saml33 7088172fd2 use inline notification for trade history message 2022-12-20 11:34:19 +11:00
tjs e5611ecb2a possible fix for trade page bug 2022-12-19 18:30:26 -05:00
tjs f3080cb27f add geo check to trade forms 2022-12-19 16:58:29 -05:00
Christian Kamm 996748eb94 Fix health impact for spot bids 2022-12-19 22:49:02 +01:00
tjs 408f738720 tab empty state text 2022-12-19 15:15:49 -05:00
tjs e9b9342325 add time and maker side to perp trade history 2022-12-19 12:41:11 -05:00
tjs 7f43fa648a fix perp fee cost in trade history 2022-12-19 12:28:24 -05:00
tjs c87559dc6a show trade history from event queue 2022-12-19 12:12:03 -05:00
tjs 2dbc11f736 fix sim health ratio 2022-12-19 10:53:49 -05:00
saml33 12126027f7 only show unsettled token with balance 2022-12-19 15:28:06 +11:00
tjs d01c02108e fix open order edit size rounding 2022-12-18 16:05:00 -05:00
tjs e7b07c0c86 add recent trade time 2022-12-18 16:04:50 -05:00
tjs 1cfa4af47a fix whitespace wrap 2022-12-18 15:37:04 -05:00
tjs 7c58c11bea use font mono for edit open order inputs 2022-12-17 15:11:15 -05:00
tjs 3538d22b87 upgrade to latest client 2022-12-16 12:30:46 -05:00
Adrian Brzeziński d0d32c097f fix break out of markePk serum3 order loop 2022-12-16 12:31:14 +01:00
tjs c52ac64725 fix modify open order 2022-12-16 01:19:54 -05:00
tjs 7b82a934e1 use openbook market 2022-12-16 01:13:00 -05:00
saml33 3f203ef14d round initial limit price to ticksize 2022-12-16 16:12:10 +11:00
saml33 711c9420ed fix logo sizes 2022-12-16 15:45:01 +11:00
saml33 4fd02a4014 finish delegate modal 2022-12-16 14:16:05 +11:00
tjs f14ec6f641 birdeye-trading-view 2022-12-15 18:33:31 -05:00
Adrian Brzeziński 4d71a9d5c5 merge 2022-12-15 11:35:14 +01:00
Adrian Brzeziński 0f10b85ac0 modify orders 2022-12-15 11:27:08 +01:00
Adrian Brzeziński c2ababe263 fix 2022-12-15 02:57:48 +01:00
Adrian Brzeziński 0ebad8d9a3 Merge branch 'main' into edit-orders 2022-12-15 02:08:17 +01:00
Adrian Brzeziński 279e521918 fix openOrders reload 2022-12-15 02:07:48 +01:00
tjs 1f7c6667f7 update fn name to better describe functionality and return value 2022-12-14 16:24:08 -05:00
tjs 49001d5ae8 handle updating price for tradeForm when on limit vs market order 2022-12-14 15:54:30 -05:00
Adrian Brzeziński 5027c2f77e Merge branch 'main' into edit-orders 2022-12-14 21:41:28 +01:00
tjs 822daf2f9f check that form values are numbers 2022-12-14 13:48:13 -05:00
tjs 749992573c fix unsettled trades table 2022-12-14 11:54:42 -05:00
Adrian Brzeziński e12707acc6 Merge commit '4875c77c530978a69defb89ace7e3446971e8641' into edit-orders 2022-12-14 17:48:44 +01:00
tjs 4875c77c53 ooops 2022-12-14 11:42:07 -05:00
tjs 0df4b365eb fix perp form error when projecting health 2022-12-14 11:40:43 -05:00
Adrian Brzeziński 7eb0e777eb Merge branch 'main' into edit-orders 2022-12-14 17:02:18 +01:00
Adrian Brzeziński e82b4af188 modify perp wip 2022-12-14 17:01:45 +01:00
Adrian Brzeziński 82379e8165 modify perp wip 2022-12-14 15:20:51 +01:00
saml33 01f1d6d95a update quote size on orderbook click and market order 2022-12-14 14:53:06 +11:00
saml33 0013266d3a fix spacing 2022-12-14 13:23:01 +11:00
saml33 55a8604717 edit open orders ui 2022-12-13 16:00:31 +11:00
saml33 e6acc3f37f add circle to sol logo 2022-12-12 21:56:06 +11:00
tjs 9e22329cf8 wip: debug errors 2022-12-12 02:20:28 -05:00
tjs f4db12fe38 fix orderbook unsubscribe 2022-12-12 01:36:30 -05:00
tjs 06ccb7c3c2 only show in unsettled if perp position has pnl 2022-12-12 01:01:49 -05:00
tjs b3a494fae1 don't show base on unsettled table 2022-12-12 00:37:49 -05:00
saml33 07e8b1a62a round oracle price to tick size 2022-12-12 15:38:52 +11:00
saml33 56dcf99769 link to market page from trade tables 2022-12-12 13:43:16 +11:00
saml33 712f42e6ec use disclosures on dashboard 2022-12-12 12:11:31 +11:00
tjs 70a83a3f27 fix trade form logos 2022-12-09 19:33:27 -05:00
tjs e0af9766c5 fix LogoWithFallback 2022-12-09 18:08:15 -05:00
tjs a9716a2181 add LogoWithFallback 2022-12-09 17:58:49 -05:00
tjs 6ad10826ca fix perp funding rate 2022-12-09 16:37:44 -05:00
tjs 52bec54dad fix orderbook click 2022-12-08 18:56:42 -05:00
tjs b03b6fb9a8 update to latest group 2022-12-08 14:58:54 -05:00
Adrian Brzeziński 68d3c961b6 merge 2022-12-08 15:12:18 +01:00
Adrian Brzeziński 2dfeca2863 add ema 2022-12-08 15:11:09 +01:00
saml33 f4871fe8d2 tweak trade form spacing 2022-12-08 22:55:31 +11:00
tjs 20af1810b0 wip: perp position settle funds 2022-12-08 01:47:32 -05:00
tjs 3dd54d26fe better handle bad perp funding rate data 2022-12-08 01:47:32 -05:00
saml33 3e159261e6 move howl outside components 2022-12-08 16:05:36 +11:00
tjs b53c4830f9 use new funding rate api endpoint
fix balance underline; simplify health impact by removing confusing parenthesis
2022-12-07 22:24:18 -05:00
saml33 738420799c remove token image rounding 2022-12-08 14:17:24 +11:00
saml33 300f481ecf add input theme colors 2022-12-08 13:34:24 +11:00
tjs 41223e846c allow setting the amount out in jupiter swap 2022-12-07 16:33:38 -05:00
saml33 c5c88ce3c2 trade header info on mobile 2022-12-07 16:25:37 +11:00
saml33 97a27ade59 add stats perp market table 2022-12-07 13:47:03 +11:00
Adrian Brzeziński c9c30c2d9d merge 2022-12-06 23:02:35 +01:00
Adrian Brzeziński 61c20de757 add clsx 2022-12-06 22:58:49 +01:00
Adrian Brzeziński 04ea8408e3 chart settings 2022-12-06 18:35:15 +01:00
Adrian Brzeziński 29cd515d62 full screen 2022-12-06 17:41:57 +01:00
saml33 7b58e9ce6d add token stats charts 2022-12-06 22:58:22 +11:00
tjs 7205f0379b show perp funding rate 2022-12-05 21:54:15 -05:00
tjs b62f102e3f tidyup 2022-12-05 21:54:15 -05:00
tjs 9a18380c74 fix lodash imports 2022-12-05 21:54:15 -05:00
Adrian Brzeziński 77954799ec kline chart wip 2022-12-06 00:54:47 +01:00
Adrian Brzeziński 2ec44f1742 technical indc 2022-12-05 18:19:59 +01:00
Adrian Brzeziński 72844038db merge 2022-12-05 13:11:53 +01:00
saml33 8dd1363212 olive and high contrast theme 2022-12-05 21:59:56 +11:00
saml33 188589c50c lychee theme 2022-12-05 10:06:06 +11:00
saml33 1768483ca1 use theme css vars instead of hardcoded rgba 2022-12-04 20:21:32 +11:00
tjs 6b55d1346a show perp unsettled pnl and updated group on an interval 2022-12-03 16:19:12 -05:00
tjs 1674f9a237 fix types and add check that input size is a number 2022-12-02 18:58:10 -05:00
tjs 616e6160da fix orderbook 2022-12-02 18:57:36 -05:00
Adrian Brzeziński 540bb5b7d6 cleanup 2022-12-02 15:09:46 +01:00
Adrian Brzeziński 96a37771f3 colors 2022-12-02 13:36:10 +01:00
saml33 4660d04041 add order value to trade form 2022-12-02 13:16:59 +11:00
Adrian Brzeziński 1af2ec414c merge 2022-12-02 01:00:05 +01:00
saml33 3c53b876f0 add slippage component 2022-12-02 10:38:41 +11:00
saml33 a9526cff9e merge main 2022-12-02 10:14:10 +11:00
Adrian Brzeziński 37ba0a5ec9 kline charts wip 2022-12-01 17:06:19 +01:00
Adrian Brzeziński cc67329be9 Merge branch 'main' into feature/kline-charts-spot 2022-12-01 12:47:35 +01:00
saml33 4af775a1c3 use new theme vars 2022-12-01 14:46:37 +11:00
saml33 209490752c better var names and hsl colors 2022-12-01 14:32:32 +11:00
tjs 0757af2213 perp funding rate 2022-11-30 10:51:38 -05:00
saml33 02495833e5 filter by spot market base 2022-11-30 16:30:18 +11:00
saml33 443858dc36 add market favorites 2022-11-30 15:01:55 +11:00
Adrian Brzeziński d03ee455ba fix 2022-11-29 18:15:47 +01:00
Adrian Brzeziński 0d7c899730 kline wip 2022-11-29 18:09:32 +01:00
saml33 b4b2198af6 full width account tabs on mobile 2022-11-29 21:58:50 +11:00
saml33 95a833fa02 fix recent trade sounds 2022-11-29 13:02:19 +11:00
saml33 211a2104fd recent trades sounds 2022-11-28 10:13:13 +11:00
saml33 f9f86b529d add slippage to trade form 2022-11-25 21:10:23 +11:00
saml33 75f2fd720b componentize settings page 2022-11-25 13:39:14 +11:00
saml33 e2832f0eea add sounds to recent trades 2022-11-25 12:57:19 +11:00
saml33 39485015c2 connect empty state icons 2022-11-25 10:56:31 +11:00
saml33 72e6a030b4 positions table connect empty state 2022-11-25 10:30:28 +11:00
saml33 f52cb54008 sound support and settings 2022-11-23 16:38:31 +11:00
saml33 37df58f959 use settings for slider or buttons to swap 2022-11-23 14:31:50 +11:00
saml33 8c20df5556 round perp position size click 2022-11-23 13:21:31 +11:00
saml33 c1cc7e1cf7 round pre-filled limit price to tick size 2022-11-23 11:57:54 +11:00
saml33 201c9a823a add token logo to limit price input 2022-11-23 10:49:42 +11:00
saml33 326e1f09dd remove commented code 2022-11-23 10:46:56 +11:00
saml33 890c9f23aa open orders mobile 2022-11-23 10:43:25 +11:00
saml33 8b9519ea6c perp position size rounding 2022-11-22 20:30:37 +11:00
tjs 0808c900bc enable linking to market pages 2022-11-21 22:57:00 -05:00
tjs 529709f30e slightly better error messages 2022-11-21 17:06:40 -05:00
saml33 378c86ef8b open orders mobile styling 2022-11-21 21:37:31 +11:00
saml33 6f95fc8784 round open orders price to tick size 2022-11-21 20:42:18 +11:00
tjs 40aa88590b split market name in recent trades 2022-11-20 23:56:20 -05:00
tjs ef144b672f fixup recent trades decimals 2022-11-20 23:52:08 -05:00
tjs 777d44860a use event queue for recent trades until api is ready 2022-11-20 23:16:11 -05:00
tjs dbcaeee439 fix entry price formatting 2022-11-20 22:11:29 -05:00
tjs eb3d915916 wip: add unsettled perp 2022-11-20 21:29:54 -05:00
tjs 372fe381d1 fix trade form; more eslint refactor 2022-11-20 18:35:59 -05:00
tjs cb0b90dfb5 refactor to use mango group hook 2022-11-20 15:32:38 -05:00
tjs 2608a661e5 refactor to use selected market hook 2022-11-20 15:20:27 -05:00
saml33 04b14640a1 use table for recent trades 2022-11-20 22:06:54 +11:00
saml33 7f57e59f44 use table components 2022-11-20 21:44:14 +11:00
tjs 6b4c1d9f7e improve advanced trade sliders 2022-11-19 20:40:06 -05:00
tjs de2fa43bae fix perp market logo 2022-11-19 15:10:32 -05:00
tjs 561eba493b fix all eslint errors 2022-11-19 14:20:36 -05:00
tjs 203c571bc5 use jupiter api and hooks 2022-11-18 18:19:04 -05:00
tjs 5727d0bc7f add a useMangoAccount hook 2022-11-18 12:09:39 -05:00
tjs 185ab4748b revert to coingecko for swap and prices.
we'll use birdeye only for candles
2022-11-18 11:29:37 -05:00
saml33 777e020648 add low sol balance warnings 2022-11-18 15:43:23 +11:00
tjs 27f821c51c simplify balance click feature 2022-11-17 17:47:22 -05:00
tjs 1d95b280e2 update balances table name to be clearer 2022-11-17 17:16:45 -05:00
tjs 7b48469827 patch merge issues 2022-11-17 17:08:45 -05:00
tylersssss afec272331
Merge pull request #31 from blockworks-foundation/perp-position-click
populate trade form from positions table
2022-11-17 16:53:36 -05:00
tylersssss 6c95cf19fb
Merge pull request #29 from blockworks-foundation/trade-balance-click
populate trade form from balances table
2022-11-17 16:51:08 -05:00
saml33 177b5f0429 use oracle price for rolling change 2022-11-17 23:53:42 +11:00
saml33 8bd4d2e976 fix market price 2022-11-17 20:17:58 +11:00
saml33 605f712d44 populate trade form from positions table 2022-11-17 16:17:18 +11:00
saml33 332dacbad3 populate trade form from balances table 2022-11-16 16:09:55 +11:00
tjs 07847b971b support versioned txs 2022-11-15 23:12:57 -05:00
saml33 4a368e2514 add buttongroup to trade form 2022-11-16 12:32:55 +11:00
tylersssss f78ebae5c8
Merge branch 'main' into use-birdeye-api 2022-11-14 19:59:21 -05:00
saml33 7041b3b4d1 fix trade page responsive 2022-11-14 21:18:38 +11:00
saml33 fca7d81dda merge main 2022-11-14 09:57:19 +11:00
saml33 8a6706e142 merge main 2022-11-11 22:39:14 +11:00
saml33 782168283d more background 2022-11-11 22:24:24 +11:00
saml33 430cd939c4 fix spot market change 2022-11-10 12:48:03 +11:00
saml33 28c0fed1c7 use birdeye for serum market price history 2022-11-05 18:13:24 +00:00
saml33 c1254c9186 add health impact to trade form 2022-11-04 18:55:21 +00:00
saml33 68226acaa0 balances empty state 2022-11-04 13:14:50 +00:00
Adrian Brzeziński 9ab04649c2 fix bad input display value display in trade form 2022-11-02 17:09:22 +00:00
Adrian Brzeziński 89095abbd9 fix cancel perp 2022-11-02 16:31:24 +00:00
tjs 9e885f10bb show users order in orderbook 2022-11-01 18:13:02 +00:00
tjs 653ba6d270 perp cancel order 2022-11-01 17:46:16 +00:00
tjs a1cfde1a34 perp positions label change 2022-11-01 16:48:40 +00:00
tjs 1da4aea86b show perp position count in tabs 2022-11-01 15:50:55 +00:00
tjs b62ff845a9 perp positions table 2022-11-01 13:10:08 +00:00
tjs dcf5f0c4fd use latest client; create perp position tab 2022-10-31 19:11:34 +00:00
tjs 7f1461123d show perp open orders 2022-10-31 18:26:17 +00:00
tjs 7d15e8e798 better is number check 2022-10-31 16:39:43 +00:00
tjs 34e904f9f8 remove logs 2022-10-31 16:39:17 +00:00
tjs 356f2c63c2 orderbook fixes for mkts with different base tokens 2022-10-29 22:34:29 -04:00
tjs 420b0270da placeperporders 2022-10-29 21:17:14 -04:00
tjs 818bbc0252 fix zustand nextjs 13 issues 2022-10-28 17:46:38 -04:00
tjs 9269b4e18f fix yarn.lock, undo next upgrade 2022-10-28 15:24:05 -04:00
tjs 4ef23e60ff url param to view other mango accounts 2022-10-27 16:58:58 -04:00
tjs a118d18564 use legacy next/image 2022-10-26 16:01:31 -04:00
saml33 0c6832c02f add tabs to market selector 2022-10-26 21:49:05 +11:00
saml33 37074e5431 add tab underline component 2022-10-26 15:44:09 +11:00
saml33 befa7e9619 fix trade page borders 2022-10-26 13:01:45 +11:00
saml33 fb5a3b0e87 add book/trades tabs to mobile 2022-10-26 12:37:59 +11:00
saml33 055c437877 add padding bottom 2022-10-24 10:04:08 +11:00
saml33 46a9b55ae0 fix trade page heights 2022-10-23 22:38:48 +11:00
saml33 6d85da0ab5 misc styling 2022-10-22 23:14:25 +11:00
tjs 7c75d04d52 load perp market 2022-10-10 22:16:41 -04:00
tjs 570d44d24a use main branch of client; update changes 2022-10-07 13:59:13 -04:00
microwavedcola1 72e4808141 match mango-v4 dev branch
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-10-07 14:27:42 +02:00
saml33 1bcde660b3 account, swap and trade tabs 2022-10-07 14:16:11 +11:00
tjs 9f073e6b87 update acct leverage to match ftx calc 2022-10-06 21:08:08 -04:00
saml33 8113371969 grouping dropdown bg color 2022-10-06 21:12:08 +11:00
saml33 6820d0e6e7 fix one-day change values 2022-10-06 16:11:28 +11:00
saml33 9f7518ffed align pop over bg colors 2022-10-06 11:04:16 +11:00
saml33 d89328f2f4 add translation keys to onboarding tours 2022-10-05 14:35:54 +11:00
saml33 b04d9c7a6d add logos to unsettled funds 2022-10-05 13:03:45 +11:00
saml33 991057f0fa fix merge errors 2022-10-05 12:59:04 +11:00
tjs c56f11ceae remove console log 2022-10-04 14:17:18 -04:00
tjshipe 5ef7217469
Merge branch 'main' into jupiter-logos 2022-10-04 13:31:24 -04:00
tjshipe c0bb9ddcda
Merge branch 'main' into onboarding-tours 2022-10-04 13:23:29 -04:00
saml33 b16435441a mobile unsettled 2022-10-04 14:42:05 +11:00
saml33 bbc9e5681d mobile open orders 2022-10-04 14:19:27 +11:00
saml33 945cf94e56 mobile trade balances 2022-10-04 13:26:50 +11:00
saml33 f2fb05d718 add loading to settle funds 2022-10-04 11:59:25 +11:00
saml33 188905d2d1 add loading to cancel order 2022-10-04 11:47:32 +11:00
saml33 2cef2c160f add loading to place order 2022-10-04 10:26:12 +11:00
saml33 771c410bc9 add trade page translation file 2022-10-03 21:38:05 +11:00
saml33 bf40157afe add count to unsettled and styling 2022-10-03 16:42:28 +11:00
saml33 fcbe08a6ba update orders on account change and disconnect 2022-10-03 15:38:49 +11:00
saml33 ae1994f14d add logos to trade form 2022-10-03 14:42:45 +11:00
saml33 95c5ef6bdf extract logos in marketlogos component 2022-10-03 14:14:26 +11:00
saml33 00aef2de4e merge main 2022-10-03 12:42:59 +11:00
saml33 cff49ded6f merge main 2022-09-30 22:55:28 +10:00
tjs 32578711b2 general refinements 2022-09-30 00:21:23 -04:00
tjs fc933758dc slightly more room for balances 2022-09-29 16:27:11 -04:00
tjs 5d07a1d9b4 add minimum for cumulative size percent 2022-09-29 16:06:04 -04:00
tjs 511d5c9dbd add cummulative size percent 2022-09-29 16:00:36 -04:00
tjs 0b07ded8a5 add settle funds 2022-09-28 21:50:02 -04:00
tjs 9afe04bde7 add open orders count 2022-09-28 16:45:08 -04:00
tjs 6b737f03c7 support passing in a count to tabbuttons 2022-09-28 16:45:08 -04:00
tjs 255ace6c00 log breakpoint changes 2022-09-28 16:45:08 -04:00
tjs f68cbbc4d2 add try catch for recent trades 2022-09-28 16:45:08 -04:00
tjs d3468628be spot slider should return number 2022-09-27 14:47:56 -04:00
saml33 ac812b6e1b change orderbook depth on mobile 2022-09-27 13:51:31 +10:00
saml33 330c734eb2 merge main 2022-09-27 12:22:45 +10:00
saml33 85fbd0593d vertically align open orders row 2022-09-27 11:31:16 +10:00
saml33 feb84dabe6 deconstruct marketinfo 2022-09-27 11:27:44 +10:00
saml33 512ba74009 add function to get logos from market 2022-09-27 11:19:27 +10:00
tjs bb50f35806 finish up spot slider 2022-09-26 15:56:06 -04:00
saml33 cd75f5c3f5 add logos to open orders 2022-09-26 21:53:49 +10:00
saml33 daf3d97dc1 open orders table 2022-09-26 21:33:07 +10:00
saml33 d25d088e09 add padding to market select menu 2022-09-26 16:18:33 +10:00
saml33 2a348b3f8c replace hex codes with color vars 2022-09-26 16:13:25 +10:00
saml33 feaf36e92d Revert "add save tradingview charts"
This reverts commit 6c4ad1ffb8.
2022-09-26 16:05:40 +10:00
tjs b44105f586 fix vertical centering orderbook 2022-09-26 16:03:41 +10:00
saml33 b6d0e9c9f5 Revert "fix vertical centering orderbook"
This reverts commit dc649f543c.
2022-09-26 15:59:40 +10:00
saml33 6c4ad1ffb8 add save tradingview charts 2022-09-26 15:35:55 +10:00
tjs dc649f543c fix vertical centering orderbook 2022-09-26 01:32:48 -04:00
tjs eb25465122 add market select logos 2022-09-25 23:12:37 -04:00
tjs a51ba82cd1 setup up market order calculation 2022-09-25 22:03:30 -04:00
tjs 109b312558 set fixed orderbook depth to max 40 2022-09-25 22:03:30 -04:00