Commit Graph

55 Commits

Author SHA1 Message Date
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
Tyler Shipe f08e323e6c remove console logs 2021-08-24 16:01:43 -04:00
Maximilian Schneider e7ff1b7234 re-enable connect wallet button 2021-08-20 17:42:50 +02:00
Maximilian Schneider 665b824fa4 enable perp trading view 2021-08-20 04:20:36 +02:00
saml33 e810c5c215 improve theme and misc styling 2021-07-29 23:19:32 +10:00
Maximilian Schneider 1fe235df8d fix trading view crash loop 2021-06-18 19:13:17 -04:00
Tyler Shipe 054cc5c82e remove console logs and fetch all markets 2021-06-18 18:38:09 -04:00
Tyler Shipe eac4adc18f add main action buttons below balances 2021-06-05 12:14:34 -04:00
Tyler Shipe 4a091882a9 disable study templates 2021-04-29 11:09:35 -04:00
saml33 fc751fe00c
More timeframes to charts and chart theming (#2)
* topbar action tooltips. flip refresh icon. max with borrow button
* more timeframes and chart theming
* fix asymmetric header button
2021-04-25 01:02:13 +03:00
Tyler Shipe d2fe9ce4c0 set default theme for netlify 2021-04-13 16:23:28 -04:00
saml33 f5cf996c41 more theme updates and ui tweaks 2021-04-14 00:10:57 +10:00