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
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
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
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
saml33
659e48c99f
mobile styles for new features
2021-09-26 23:20:51 +10:00
saml33
76859b83dc
remove semicolon
2021-09-25 23:08:49 +10:00
saml33
367e2712b0
align advanced trade form
2021-09-25 22:50:32 +10:00
Maximilian Schneider
5c09bedce8
update simple trade form
2021-09-25 13:47:22 +02:00
Riordan Panayides
9eabaa3b01
Trim bad data from first few hours of sol-perp stats ( #38 )
2021-09-25 12:17:17 +02:00
saml33
2805e21fde
align title, side tabs, trade button
2021-09-25 19:40:35 +10:00
Maximilian Schneider
95ac8c58b9
merge changes from sam
2021-09-24 20:58:00 +02:00
Maximilian Schneider
31b9737f59
allow selecting SL & TP directly
2021-09-24 20:38:05 +02:00
saml33
0469b17847
add flip card to tradeform
2021-09-24 22:24:17 +10:00
Maximilian Schneider
d310e0b66f
[wip] visualize & cancel trigger order and fuck up order reloading 😭
2021-09-23 13:50:34 +02:00
Tyler Shipe
207fddd242
call addPerpTriggerOrder
2021-09-23 02:05:47 -04:00
Tyler Shipe
419f7d607c
Merge branch 'ts/spot-order-2' into max/stoploss
2021-09-22 23:20:56 -04:00
Tyler Shipe
0e389e7c3b
remove console.logs
2021-09-22 23:14:21 -04:00
Tyler Shipe
13c3e3ad5c
Hide average rates if we haven't passed the period length
2021-09-22 17:22:31 -04:00
Tyler Shipe
6513d046e6
Use deposit and borrow index to calculate average rates
2021-09-22 16:52:42 -04:00
saml33
6c443936a3
fix mobile orderbook asks order
2021-09-22 19:26:59 +10:00
Tyler Shipe
8ac61f4b3e
yarn format and remove console.log
2021-09-21 16:19:01 -04:00
Tyler Shipe
1fdea822cd
leverage slider should use limit price if entered
2021-09-21 16:12:50 -04:00
Maximilian Schneider
8abbce0238
[wip] add trigger order components
2021-09-21 20:04:33 +02:00
saml33
53e3f42ba1
remove scroll on position panel
2021-09-21 19:50:53 +10:00
Maximilian Schneider
228b9ae09b
add assets to stats page
2021-09-21 11:28:24 +02:00
saml33
615e858cab
add maker/taker fees back to trade form
2021-09-21 10:08:38 +10:00
saml33
782157b5be
fix mobile chart display
2021-09-21 07:49:26 +10:00
Tyler Shipe
745ce39647
add padding between prices on orderbook for md+ screens
2021-09-20 15:39:20 -04:00
Tyler Shipe
ce301c07df
use latest price for funding rate until avg is available
2021-09-20 14:37:38 -04:00
saml33
04913c2a3a
fix trade history tab display
2021-09-20 23:15:44 +10:00
saml33
cc45750a59
fix null open orders
2021-09-20 22:46:22 +10:00
saml33
3e1b872e42
align mobile tab headings
2021-09-20 22:24:42 +10:00
saml33
07ad9cf4b3
fix orderbook padding
2021-09-20 19:56:50 +10:00
saml33
e1f4a9baf8
revert market position key
2021-09-20 15:00:02 +10:00
saml33
7e8f3e12af
tradeform buttons
2021-09-20 13:28:37 +10:00
saml33
1830986e40
remove swipeable tabs from desktop views
2021-09-20 13:21:55 +10:00
saml33
3d777a4ab1
increase horizontal page container padding
2021-09-20 10:50:51 +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
Tyler Shipe
f1d59d32e1
use placeSpotOrder2 and add reduce only orders for perps
2021-09-15 20:25:23 -04:00
Tyler Shipe
824e8cc7ae
fix to use rpc url from localstorage on first connection
2021-09-14 12:27:38 -04:00
saml33
9b3faddc3d
fix negative borrow amount
2021-09-14 11:32:36 +10:00
Tyler Shipe
9162ffbe3a
use dropdown for node selection
2021-09-13 19:27:02 -04:00
Tyler Shipe
83d72c8aaa
fix issue with mangoclient import
2021-09-13 17:21:58 -04:00
Tyler Shipe
c1269298b9
use custom endpoint url
2021-09-13 17:14:59 -04:00
Tyler Shipe
cc87df1c02
optional numTrades for tradehistory
2021-09-13 12:40:28 -04:00
Tyler Shipe
c91d65e933
only show 100 recent trades in history tab
2021-09-13 12:28:53 -04:00
Maximilian Schneider
97721bf678
Open BTC-Perp when navigating to trade page
2021-09-13 02:37:43 +02:00
Tyler Shipe
445aabd506
fix z-index
2021-09-12 12:11:58 -04:00
Tyler Shipe
288b14a167
fixed charts in dev mode
2021-09-11 18:41:14 -04:00
Tyler Shipe
e080ff8120
fix clickable size in orderbook
2021-09-10 13:28:18 -04:00
saml33
8309a05bac
add average rates tables
2021-09-10 18:30:25 +02:00
saml33
54fa99aaf5
Merge pull request #30 from blockworks-foundation/stats-table-mobile
...
stats table mobile
2021-09-10 11:45:04 +10:00
Tyler Shipe
732d854c36
add manual refresh to ui
2021-09-09 20:23:02 -04:00
saml33
00d02ccde1
stats table mobile
2021-09-09 23:14:20 +10:00
saml33
13e46c3425
remove available balance from max borrow amount
2021-09-09 08:23:24 +10:00
Tyler Shipe
e303c6927c
add sol amount needed to create a mango account
2021-09-08 15:11:02 -04:00
Tyler Shipe
5bcec8dd69
change interval to refresh trade history
2021-09-08 14:08:54 -04:00
saml33
1f8ca47328
improve borrow page tables
2021-09-08 23:04:09 +10:00
saml33
e5579b09bb
format trade price
2021-09-08 14:34:52 +10:00
saml33
18d43bd837
trade history table mobile
2021-09-08 14:12:49 +10:00
saml33
d291197544
Merge pull request #27 from blockworks-foundation/perp-position-mobile-table
...
perp positions table mobile
2021-09-08 12:45:37 +10:00
saml33
6e4323ee6e
perp positions table mobile
2021-09-08 11:52:45 +10:00
Tyler Shipe
0034344577
fix order highlighting when grouping orderbook
2021-09-07 21:39:12 -04:00
Tyler Shipe
33070aef91
reduce getProgramAccount calls
2021-09-07 19:31:02 -04:00
saml33
ebad7d753f
fix available liquidity unit
2021-09-08 08:55:45 +10:00
tjshipe
3c38928ffc
Merge pull request #24 from rjpeterson/orderbook-grouping
...
Orderbook grouping
2021-09-07 17:23:50 -04:00
Tyler Shipe
b03db3b771
remove send transaction notification
2021-09-07 15:27:54 -04:00
tjshipe
c135c871bf
Merge pull request #18 from blockworks-foundation/perp-stats
...
Add funding rate and open interest graphs
2021-09-07 23:46:45 +10:00
rjpeterson
d2052270e7
adjust dropdown width
2021-09-07 15:55:28 +08:00