Commit Graph

1058 Commits

Author SHA1 Message Date
Tyler Shipe 361268c751 fix: bugs when changing state with new order types 2021-10-11 14:02:20 -04:00
dd 5cda732cc0 upgraded mango client with more fixes 2021-10-10 11:30:06 -07:00
dd f3fbb1af6b changed mango client package to v3.1 after place spot order2 fix 2021-10-10 11:06:57 -07: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 2b9f26af4c only use local storage for node url if on mainnet 2021-10-05 14:24:24 -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
saml33 f5f243a9a8
pre-fill spot balance (#41)
* pre-fill spot balance

* fix undefined basePosition
2021-10-03 04:01:06 +02:00
Maximilian Schneider 82dcd960c0 revert to buy/sell in trade button 2021-10-03 03:21:26 +02:00
Tyler Shipe 7e2d6053fc use latest client to support reduceOnly flag in placePerpTriggerOrder 2021-10-01 16:51:24 -04:00
Tyler Shipe f43f4f2c1c fix invalid price bug when placing advanced orders 2021-10-01 14:51:19 -04:00
Tyler Shipe 052de958f2 consistent padding; use latest from client branch 2021-10-01 13:21:17 -04:00
Maximilian Schneider 76762aae31 refresh size when changing markets 2021-10-01 18:26:06 +02:00
Maximilian Schneider eb2568672c fix fee calc & respect reduceOnly 2021-10-01 18:21:09 +02:00
Tyler Shipe 6925a46df8 Revert "Revert "add interest earned table to account page""
This reverts commit 03dc3cd001.
2021-10-01 11:42:42 -04:00
Maximilian Schneider 2cf097976a wire up slippage estimator 2021-10-01 17:32:15 +02:00
Maximilian Schneider 28af7ef2cf correctly set size when switching margin toggle 2021-10-01 13:35:57 +02:00
saml33 dbbb415060
Default market settings (#45)
* add default market settings to settings modal

* redirect to default market
2021-10-01 12:05:42 +02:00
saml33 b38fc8594d layout changes and est price impact 2021-10-01 00:21:45 +10:00
Maximilian Schneider 71945ff9ce Merge remote-tracking branch 'origin/max/stoploss' into max/stoploss 2021-09-30 12:00:45 +02:00
Maximilian Schneider 82a3dcebb6 Merge branch 'align-advanced-trade-form' into max/stoploss 2021-09-30 11:51:49 +02:00
Tyler Shipe 7feb881bb3 rename fetchMangoAccounts to fetchAllMangoAccounts; prefer reloadMangoAccount over fetchAllMangoAccounts 2021-09-29 18:09:58 -04:00
Tyler Shipe 9118dbf010 fix trade form button colors; use latest client to handle when no advanced orders exist 2021-09-29 16:47:10 -04:00
Maximilian Schneider 9d82894c2d prevent flashing on order reloading 2021-09-29 21:09:51 +02:00
Tyler Shipe f2667e3346 use latest client 2021-09-29 13:10:16 -04:00
Tyler Shipe 7ba6cf2412 use the latest client 2021-09-29 12:24:09 -04:00
Tyler Shipe 03dc3cd001 Revert "add interest earned table to account page"
This reverts commit 0f6d39043f.
2021-09-28 11:58:15 -04:00
saml33 229d9a8fbf expose pnl on mobile table row 2021-09-28 23:15:36 +10:00
Tyler Shipe 0f6d39043f add interest earned table to account page 2021-09-28 00:13:40 -04:00
saml33 242f46bbb7 fix -0 balance 2021-09-28 13:00:13 +10: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
Maximilian Schneider 70dc7d816a display conditional orders in order table 2021-09-27 17:45:39 +02:00
ImpossiblePairs 4de176eb4b Merge branch 'main' into tradingview-order-lines 2021-09-27 07:35:50 -07:00
saml33 4c4533509e fix mobile stats 2021-09-28 00:21:13 +10:00
saml33 56c42a857e trade side tab label text 2021-09-27 22:43:23 +10:00
saml33 7b69b22feb fix size buttons for perp 2021-09-27 22:36:25 +10:00
Maximilian Schneider f7a7f5f424 Revert "leverage slider should use limit price if entered"
This reverts commit 1fdea822cd.
2021-09-27 14:32:06 +02:00
saml33 efe04b8df1 spot margin toggle (advanced form only) 2021-09-27 22:11:19 +10:00
saml33 29af41d2c0 Merge branch 'max/stoploss' into align-advanced-trade-form 2021-09-26 23:40:02 +10:00