Commit Graph

469 Commits

Author SHA1 Message Date
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
tjs 029bc99c0a update open orders and balances on account change 2022-09-25 22:03:03 -04:00
tjs d57aa19533 remove publickey from trading view to prevent rerenders on connection 2022-09-25 22:03:03 -04:00
saml33 e39cb5ff6c add orderbook loader 2022-09-24 22:07:10 +10:00
saml33 45893804e6 merge main 2022-09-24 20:20:49 +10:00
saml33 5bb3c3e6e9 misc styling 2022-09-23 15:09:38 +10:00
saml33 527a18930a fix trade page merge issue 2022-09-23 14:38:17 +10:00
saml33 8986660b55 merge main 2022-09-23 14:08:56 +10:00
saml33 9750b82e9c save hasSeen tour to db 2022-09-23 14:00:42 +10:00
tjs 22806d31a5 fix recent trade scrolling 2022-09-22 17:47:18 -04:00
saml33 545470cf1f add consistent tracking to font-mono class 2022-09-22 20:46:51 +10:00
saml33 bd687aa952 add bottom border to trade form tabs 2022-09-22 15:32:48 +10:00
saml33 f62955bf76 use tab component orderbook and trade form 2022-09-22 15:28:53 +10:00
saml33 611399b2f5 style recent trades 2022-09-22 14:46:30 +10:00
saml33 f5abb4d381 add tours and copy 2022-09-22 14:25:24 +10:00
tjs 3ba6ce77dc wip: spot slider 2022-09-21 21:52:36 -04:00
tjs cf7c06d9d2 fix vertical center 2022-09-21 01:22:50 -04:00
tjs 876270be28 cleanup 2022-09-20 21:20:26 -04:00
tjs 98bc6b8fce improve orderbook vertical centering 2022-09-20 21:20:26 -04:00
tjs 3ad513c874 add recent trades 2022-09-20 16:05:50 -04:00
tjs da13e3a0b5 vertically center orderbook as window is resized 2022-09-20 14:31:17 -04:00
saml33 2b9ada9ebc remove double borders 2022-09-20 20:36:33 +10:00
tjs 08ba8abd67 full height orderbook 2022-09-20 01:03:01 -04:00
saml33 dcd26ac1b6 update tab copy 2022-09-20 14:39:17 +10:00
tjs ff36519fe7 dont show limit input on market orders 2022-09-19 20:30:29 -04:00
tjs 2d59e2a448 anchor orderbook column headers 2022-09-19 20:27:06 -04:00
saml33 a49d28437b use percentagechange component in trade page header 2022-09-20 10:12:30 +10:00
tjs 9c592c53b3 add recent trades tab 2022-09-19 19:29:17 -04:00
tjs 219f80c34e memoize orderbook row 2022-09-19 19:26:30 -04:00
saml33 f15de620ee open orders empty states 2022-09-19 21:32:59 +10:00
saml33 a2f83b527d orderbook layout 2022-09-19 15:36:09 +10:00
saml33 953e2d2312 left-align orderbook size column 2022-09-19 12:25:31 +10:00
tjs 14f99ff0d6 font without slashed zero 2022-09-18 19:02:52 -04:00
saml33 2fea0ed266 add orderbook grouping ui 2022-09-18 22:53:28 +10:00
saml33 9d146f7b02 more trade layout 2022-09-17 23:03:46 +10:00
saml33 3c55bf5b59 mobile trade page 2022-09-16 20:49:10 +10:00
saml33 a2400638aa trade grid layout for lg, md 2022-09-16 13:40:30 +10:00
saml33 fd5b6ba60d trade grid layout for xl, xxl, xxl 2022-09-16 11:58:35 +10:00
saml33 9ed74880b2 align tabs to trade page 2022-09-15 16:06:23 +10:00
saml33 0ae2912cb9 misc styling 2022-09-15 14:51:19 +10:00
saml33 e42e4db58a style trade form 2022-09-15 14:12:00 +10:00
saml33 859169fd98 remove double borders from trade 2022-09-15 13:08:42 +10:00
tjs 4270ad8d3b use latest client; fix merge conflicts 2022-09-14 10:52:18 -04:00
tjs 84728b580b serum spot trade page 2022-09-14 02:24:44 -04:00
tjs c2f1f02829 use alias imports 2022-09-12 12:04:20 -04:00