Commit Graph

23 Commits

Author SHA1 Message Date
Tyler Shipe 3d274e64d7 use estimatedSize in fee estimation; use price of 1 for mkt close orders 2021-10-05 17:46:15 -07: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
saml33 f5f243a9a8
pre-fill spot balance (#41)
* pre-fill spot balance

* fix undefined basePosition
2021-10-03 04:01:06 +02:00
saml33 229d9a8fbf expose pnl on mobile table row 2021-09-28 23:15:36 +10: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
saml33 6e4323ee6e perp positions table mobile 2021-09-08 11:52:45 +10:00
Tyler Shipe 9c3c0677bd perp position pnl using breakeven price 2021-08-30 02:33:41 -04:00
Tyler Shipe bc447a5296 add value to open orders table, add color to perp pnl 2021-08-30 02:17:36 -04:00
Tyler Shipe 2ecd1b2122 perp market close position button 2021-08-26 11:58:13 -04:00
saml33 f6ad6fbc56 update close position modal button text 2021-08-26 11:08:21 -04:00
saml33 04904203b0 add market close 2021-08-26 11:08:21 -04:00
Tyler Shipe 251b0a1d8d use the correct pk to get the perpmarket 2021-08-23 18:19:20 -04:00
Tyler Shipe de052ace29 add collateral available and market margin available 2021-08-23 15:35:59 -04:00
saml33 246ac3d385 account page tweaks 2021-08-24 00:14:03 +10:00
saml33 945f8a1a90 add orders/position count 2021-08-22 22:45:10 +10:00
dd 1b5cac89a1 fixed getPnl and settlePnl functions and updated client 2021-08-20 16:39:44 -04:00
saml33 cbd0e0b934 fill trade size from position size 2021-08-20 21:51:29 +10:00
Tyler Shipe 56d9eb00ab fix perp position table 2021-08-19 20:14:04 -04:00
Tyler Shipe 0af7a8b8ee more trade form improvements 2021-08-18 16:15:17 -04:00
Tyler Shipe c598f79a4a remove fee tab; set trade form price on page load 2021-08-18 10:24:29 -04:00
Tyler Shipe 6d5dbd8265 high side bade if no perp position 2021-08-16 18:40:56 -04:00
Tyler Shipe 1917ba41c7 reuse tooltip for settle pnl 2021-08-16 17:35:16 -04:00
Tyler Shipe 9c1f8edf20 rename positions table; fix rounding issues 2021-08-15 13:06:52 -04:00