tjs
79ebdba891
separate try/catch for avg entry and break even on perps
2022-03-27 13:11:00 -04:00
tjs
af2965098b
fix notifications, use accountsdb to fetch mango accts
2022-03-24 01:50:33 -04:00
tjs
4c0eb2114e
refactor trade history to use the mango store
...
reduces rerenders
update usePerpPosition with tradeHistory
2022-03-20 04:06:30 -04:00
tjs
45127eb8c0
use latest mango client
2022-03-18 10:34:46 -04:00
tjs
f8a0849c40
update zustand store types to work with zustand 3.7
2022-03-16 17:27:26 -04:00
Tyler Shipe
0ddcf8c2c2
update order book on trade history change
2022-02-05 16:09:18 -05:00
Tyler Shipe
a6d432f32d
utilize zustand for perppositions
2022-01-27 22:57:18 -05:00
Tyler Shipe
e1114d7477
handle when perpmarket isnt loaded yet
2022-01-12 16:46:41 -06:00
Tyler Shipe
bf9215562b
fix error boundary env var
2021-12-30 21:00:42 -05:00
Tyler Shipe
855a6e6d58
add ws watching for mangoAccount
2021-12-05 20:13:23 -05:00
Tyler Shipe
2d824c2213
add lastUpdatedAt to improve useMangoAccount rerendering trigger
2021-11-30 16:04:55 -05:00
Tyler Shipe
4eb7cd3934
forceReload components when mango account is updated in store
2021-11-30 12:32:14 -05: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
63e151f516
prevent useOrderbook from updating during market change
...
fixes white screen error
2021-08-27 20:15:25 -04:00
saml33
945f8a1a90
add orders/position count
2021-08-22 22:45:10 +10:00