Commit Graph

66 Commits

Author SHA1 Message Date
saml33 be0995af25
add tradingview chart attribution link (#257) 2022-04-15 14:07:38 +02:00
tjs df2ed148b8 maintain chart resolution 2022-04-02 19:32:51 -04:00
Kieran Gillen 39e4a6def5 Adds more null checks 2022-03-30 13:08:05 +02:00
Kieran Gillen a6aaf551dd Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into kieran/strict-nullcheck 2022-03-29 12:02:37 +02:00
Kieran Gillen 6da4d5f76f Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into kierangillen/wallet-updates 2022-03-28 18:22:13 +02:00
tjs a0e2c49b92 Fixed issue with price when moving trading bar lines 2022-03-25 15:35:56 -04:00
Kieran Gillen 8734f7e181 WIP: Null checking 2022-03-25 17:00:48 +01:00
Kieran Gillen 1a40a98af0 Removes calls to Wallet and Connected through MangoStore hook 2022-03-23 11:42:04 +01:00
tjs 32fc5052e9 store order lines in mango store and show preferences in local storage 2022-03-20 18:50:05 -04:00
tjs c4f02153b7 refactor trading view component 2022-03-20 04:06:30 -04:00
saml33 a25570c384 misc number formatting 2022-03-16 01:12:46 +11:00
tjs bd4c4145b5 uses referrerpk if it exists for modifyPerpOrder 2022-02-14 21:32:31 -05:00
tjs f54af5c787 add ref links 2022-02-14 12:17:11 -05:00
Tyler Shipe 74110b510b hide tv left toolbar; consistent table row heights 2022-01-31 22:51:54 -05:00
Tyler Shipe 09272d4266 add check to orderbook highlighting so it only shows selected market 2022-01-30 16:48:36 -05:00
Tyler Shipe 2355dfcaa6 store openOrders in zustand 2022-01-27 11:57:36 -05:00
Tyler Shipe 187f7d3469 update naming from marginAccount to mangoAccount in trading view component 2022-01-10 13:38:58 -05:00
tjshipe 9c2a8f097f
Merge pull request #114 from blockworks-foundation/ImpossiblePairs-patch-1
Flush lines on market change
2021-12-28 17:42:45 -05:00
Tyler Shipe d0fb21b90c use theme for bg color in trading view loading screen 2021-12-28 15:03:53 -05:00
ImpossiblePairs 5484f9144f
Flush lines on market change
Updated drawlines() on market refresh to flush lines first if present.
2021-12-17 15:10:27 -08:00
Tyler Shipe 79f15aa6a8 redraw lines after changing market 2021-12-14 20:10:18 -05:00
Tyler Shipe df98fbacd4 remove console logs 2021-12-02 11:22:13 -05:00
Tyler Shipe 8df197fdb9 try again fixing tv chart 2021-12-02 01:07:34 -05:00
Tyler Shipe f58433ac0b fix useEffect in trading view chart 2021-12-01 21:59:57 -05:00
Tyler Shipe 33c9532a2f only set chart symbol if it changes 2021-12-01 16:05:01 -05:00
Tyler Shipe 459c63daa2 expand trading view component by reducing padding 2021-12-01 11:49:28 -05:00
tjshipe 68e4f4d19d
Merge branch 'main' into update-translations 2021-12-01 01:12:59 -05:00
Tyler Shipe eb81b20e3f fix trading view flashing when changing markets 2021-12-01 00:00:09 -05:00
Tyler Shipe 33f49e8049 remove duplicate chart library folder 2021-11-30 20:17:45 -05:00
Tyler Shipe 84233b2a56 improve rerender when cancelling orders for a market other than the one selected 2021-11-30 18:35:49 -05:00
Tyler Shipe 4eb7cd3934 forceReload components when mango account is updated in store 2021-11-30 12:32:14 -05:00
rjpeterson 6b223e62e1 rebase & add statsperps + account history translation 2021-11-23 22:17:17 -10:00
tjshipe eb39e1cbb1
Merge branch 'main' into order-lines-translation 2021-11-13 17:32:52 +00:00
Maximilian Schneider 3cecd12df0 Revert "start with 1m chart for SOL markets"
Revert "disable 24h volume"
2021-11-06 01:10:25 +00:00
Maximilian Schneider 39e0e8e8f4 start with 1m chart for SOL markets 2021-11-03 22:52:31 +00:00
Tyler Shipe 9c2c7186ae yarn format 2021-10-28 12:46:45 -04:00
ImpossiblePairs 8beab41743
Toggle button for Order Line Visibility (#62)
* Toggle button for Order Line Visibility

Allow users to toggle order line visibility on and off.  Should be useful if you have a lot of orders on the books.

* Updated const

Button updated to const.

* Remove event not used

Event in addEventListener never used, and removed.
2021-10-28 13:45:29 +01:00
Tyler Shipe 597e0b65b7 reduce padding to remove horizontal scrollbar; yarn format 2021-10-26 11:57:54 -04:00
rjpeterson 12dd879a71 integrate changes from da10aa9966 2021-10-25 14:58:00 -10:00
ImpossiblePairs da10aa9966
Fix Order Line Number Formatting
Number formatting of the order line text updated to account for SOL decimal precision.
2021-10-25 15:53:38 -07:00
rjpeterson d04714e0bf remove unused import 2021-10-25 11:11:03 -10:00
rjpeterson 941583a0dc remove comment 2021-10-25 11:09:09 -10:00
rjpeterson 0359b80e55 add translations for tradingview chart order lines 2021-10-25 11:03:00 -10:00
ImpossiblePairs b5f1a5f05e
Fixed handleCancelOrder conditional statement
Fixed trigger conditional statement for cancelling order
2021-10-16 12:03:33 -07:00
impossiblepairs 504613aa07 Update Order Lines for Advanced Order Types
Added ability to visualize advanced order types in the trading view chart.

Also fixed the calculateMarketPrice bug that was not setting advanced limit orders to the limit price.
2021-10-16 11:49:57 -07:00
ImpossiblePairs 12e5578765
Fixed order type specification
Updated to add explicit order types to the HandleModifyOrder function.
2021-09-27 10:02:34 -07:00
ImpossiblePairs d089927d60
Order Line edge case handling and refreshing
Updated the order lines to handle additional edge cases including transactions cancelled before execution, open orders length changes and order length discrepancies.

Changed order line useEffect to be based on a time interval to avoid uncaught maximum render exceedance issues.
2021-09-27 09:22:19 -07:00
saml33 9123e63344
Trade page mobile (#35)
* mobile styles for chart, position, account

* mobile styles for trade form

* trade page mobile styles

* tab layout

* fix unknown property fill-rule

* test swipeable tabs

* fix container height

* fix orderbook mobile styles

* account page mobile styles

* fix swipeable container height

* stats page mobile styles
2021-09-20 02:36:02 +02:00
Tyler Shipe e0f2398dab remove old hooks 2021-08-29 20:37:31 -04:00
Tyler Shipe b1215906a9 add more precision to trading view chart 2021-08-24 19:22:20 -04:00