Commit Graph

672 Commits

Author SHA1 Message Date
Tyler Shipe 9c2c7186ae yarn format 2021-10-28 12:46:45 -04:00
Tyler Shipe 44176247d7 temp: hide hourly funding table 2021-10-28 12:45:19 -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 f2c484de63 allow changing settings before wallet is connected 2021-10-27 17:43:10 -04:00
Tyler Shipe fc1665444f upgrade to next12, remove babel, remove emotionjs, convert emotion styles to inline 2021-10-27 16:46:31 -04:00
Tyler Shipe 109f75a984 add mango account to trade page 2021-10-27 16:31:45 -04:00
Tyler Shipe 6b28aa3666 Merge branch 'hourly-stats-tables' into main 2021-10-27 12:44:09 -04:00
Tyler Shipe 597e0b65b7 reduce padding to remove horizontal scrollbar; yarn format 2021-10-26 11:57:54 -04:00
Tyler Shipe 7bbdcc0e7a update perp maker fee 2021-10-26 11:27:26 -04:00
saml33 ce2e32ee1a
add buttongroup and interest info to deposit/withdraw (#59) 2021-10-26 15:25:36 +01: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
Tyler Shipe 98a151d8a0 add quote symbol to funding table 2021-10-25 15:39:49 -04:00
Tyler Shipe 8ec17ecfaf yarn format TradingView/index.tsx 2021-10-25 15:24:00 -04:00
Tyler Shipe 3da0b240f5 add paginated tables for account interest and funding 2021-10-25 15:21:54 -04:00
tjshipe d1eb208600
Merge pull request #40 from blockworks-foundation/tradingview-order-lines
Add Tradingview Order Lines to Main
2021-10-22 22:25:43 -04:00
Tyler Shipe 77095e5049 temp: disable hourly funding to optimize queries and switch to table view 2021-10-22 11:29:15 -04:00
rjpeterson 25bb4413bf add missing translations to withdrawModal 2021-10-21 21:57:16 -10:00
tjshipe 9dcb0f329f
Merge pull request #52 from blockworks-foundation/perp-table-market-link
link to perp market from positions table
2021-10-21 16:19:26 -04:00
rjpeterson 0733e8cda7 add missing translations, add spanish option, fix dropmenu z-index 2021-10-20 08:48:02 -10:00
rjpeterson bf679598bb
Add next-i18next translation framework & Traditional and Simplified Chinese UI Translations (#54)
* start english localization

* fix typo

* add to english localization

* add some zh translations, fix discrepencies in en

* add more chinese translations

* finish trad chinese translations

* add simplified folder, add locales.json with meta info, add latest ui updates in english

* add latest ui changes for chinese-trad and sort

* fix typo

* convert trad to simp

* Update common.json

* add review changes by @HZ2078

* fix typos

* add latest ui changes

* new ui change & trad-simp convert

* delete monospace from locales.json

* add next-i18next translation framework. Add translations up to #103

* replace more html with traslate tags

* lint & add more phrases

* add missing translations

* add language select dropdown

* add new update transltations

* add latest gui update translations

* add useTranslation to lang switch

* sort common.json, add lang descriptions

* update netlify config to support i18n

* make translations more consistent

Co-authored-by: Hz2078 <92381714+HZ2078@users.noreply.github.com>
Co-authored-by: Tyler Shipe <tjshipe@gmail.com>
2021-10-20 13:42:40 +01:00
Tyler Shipe c53c35b2e4 fix: handle when no funding stats exist for acct 2021-10-18 18:00:47 -04:00
Tyler Shipe 9344defc06 Merge branch 'alpha' into main 2021-10-18 17:27:53 -04:00
Tyler Shipe a63a02c9b8 disable msrm deposit if none in wallet 2021-10-18 17:21:37 -04:00
Tyler Shipe e049456edd MSRM deposit and withdraw 2021-10-18 16:38:03 -04:00
dd 0c9e3e71f6 showing funding rate APR in UI 2021-10-18 13:15:37 -04:00
saml33 3c2e5e161f link to perp market from positions table 2021-10-18 21:34:52 +11:00
Tyler Shipe 76bf0a0320 hourly account interest chart 2021-10-18 02:50:39 -04:00
Tyler Shipe 5824d71db1 hourly funding chart 2021-10-18 01:17:07 -04:00
Tyler Shipe 71bfa3f3a5 add total funding 2021-10-17 22:34:24 -04: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 3b5c84bcc4 Merge branch 'main' into tradingview-order-lines 2021-10-16 11:34:54 -07:00
Tyler Shipe 3b65fed87d fix: format decimals for perp trigger orders 2021-10-12 16:59:21 -04:00
Tyler Shipe dd0592feff add more info to tooltip 2021-10-11 17:46:52 -04:00
Tyler Shipe 9afc697336 fix: remove taker fee from estimated price impact 2021-10-11 15:56:11 -04:00
Tyler Shipe eb8210b0c7 Merge branch 'max/stoploss' into main 2021-10-11 14:04:16 -04:00
Tyler Shipe 361268c751 fix: bugs when changing state with new order types 2021-10-11 14:02:20 -04:00
saml33 5132fb9f8d show accounts and settings options on mobile 2021-10-09 21:05:45 +11:00
saml33 445bb11059
add time filters and ticks to stats charts (#47)
* add time filters and ticks

* mobile tweaks
2021-10-07 12:34:26 +01:00
Tyler Shipe b78e12d670 improve btc perp funding data for chart display 2021-10-06 15:38:30 -07:00
Maximilian Schneider 3e65e53101 display deposit & withdraw modal on mobile 2021-10-06 20:08:35 +02:00
Tyler Shipe 3d274e64d7 use estimatedSize in fee estimation; use price of 1 for mkt close orders 2021-10-05 17:46:15 -07:00
Tyler Shipe 9cb4ccf519 use new placePerpOrder market order type when closing pos 2021-10-05 17:01:44 -07:00
Maximilian Schneider 1c04018f65 Merge remote-tracking branch 'origin/max/stoploss' into max/stoploss 2021-10-05 23:02:35 +02:00
Maximilian Schneider 93abdab9f6 Merge remote-tracking branch 'origin/main' into max/stoploss 2021-10-05 23:02:01 +02:00
Maximilian Schneider 97bb02e593
show unsettled pnl (#46)
* display unsettled pnl more dominantly (#43)

* display perp markets that have unsettled pnl

* fix dependencies to a working version

* add back unrealized pnl vs unsettled pnl

* add todo

* settle all

* cleanup

* catch error

* fix crash in market position & refactor

* bugfixes

* correct unrealized pnl
* remove unsetlled pnl from table
* only show unsettled balances after closing position
2021-10-05 22:22:47 +02:00
Tyler Shipe 5d658754a8 fix types in EstPriceImpact 2021-10-05 15:12:26 -04:00
Tyler Shipe b8c6a1bbf7 use avg oracle price to calculate funding rate 2021-10-05 11:46:01 -04:00
Riordan Panayides b3f2843bd2 Fix null mangoAccount 2021-10-05 03:14:07 +01:00
Tyler Shipe c503f81db5 display in the ui when beingLiquidated is true 2021-10-04 21:55:29 -04:00