Commit Graph

50 Commits

Author SHA1 Message Date
tjs c79e0869b5 use bignumber abs for perp position 2022-03-21 08:52:41 -04:00
tjs fa7edcc119 switch away from toLocaleString
toLocaleString is quite slow
2022-03-20 21:30:12 -04:00
tjs 2fd1e8676c more type checks 2022-03-20 04:07:03 -04:00
saml33 a25570c384 misc number formatting 2022-03-16 01:12:46 +11:00
dd df2b2eb9ba fix display of taker fee and maker fee decimals 2022-02-28 12:51:10 -05:00
dd 5d7599ef97 optimizations; Add more commas to large numbers; NO MERGE STILL UNFINISHED 2022-02-28 12:51:03 -05:00
tjs 366617dc5c fix type errors 2022-02-09 11:28:57 -05:00
Brandon Bonipart 32fe8392e7 replaces daily change in MarketDetails with rolling 24hr change. 2022-01-24 07:46:06 -05:00
ImpossiblePairs 5de849eec4
Add LUNA Perp Contract Precision
Updated perpContractPrecision for LUNA perp
2022-01-04 13:34:10 -08:00
ImpossiblePairs 15bb3814a3
Update Precision Utils Information
UI precision information doesn't currently include MSOL, BNB, or AVAX.
2021-12-20 09:32:09 -08:00
dd 588ae8dd18 Looks like max slippage on perp Market orders is working 2021-12-02 21:38:44 -05:00
dd dc102338e2 fixed ugly open interest display in perps stats; added perpContractPrecision in index.ts 2021-11-23 12:52:27 -05:00
saml33 859432fdb2 fix: match oracle and markprice decimals to tick size 2021-11-02 20:43:28 +11:00
Tyler Shipe 597e0b65b7 reduce padding to remove horizontal scrollbar; yarn format 2021-10-26 11:57:54 -04:00
ImpossiblePairs dabc7871ae
Fix calculateTradePrice function
Updated calculateTradePrice function used in the AdvancedOrderForm to incorporate the specified limit price of a Take Profit Limit or Stop Limit order.
2021-10-14 11:23:42 -07:00
Tyler Shipe eb8210b0c7 Merge branch 'max/stoploss' into main 2021-10-11 14:04:16 -04: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 f43f4f2c1c fix invalid price bug when placing advanced orders 2021-10-01 14:51:19 -04:00
Maximilian Schneider 8abbce0238 [wip] add trigger order components 2021-09-21 20:04:33 +02:00
Tyler Shipe 732d854c36 add manual refresh to ui 2021-09-09 20:23:02 -04:00
Tyler Shipe 50c9fc07c1 add open order to orderbook 2021-09-03 01:32:27 -04:00
Tyler Shipe 9b3b360349 remove more unused util fns 2021-08-25 10:51:51 -04:00
Tyler Shipe 66bf66fc7c remove unused utils fns 2021-08-25 10:23:30 -04:00
saml33 e6c1cfca08 balance rounding in balances panel 2021-08-24 20:09:42 +10:00
saml33 072f450f18 remove rounding from balances on account page 2021-08-24 16:44:58 +10:00
saml33 246ac3d385 account page tweaks 2021-08-24 00:14:03 +10:00
saml33 51741bc9a3 loading states for connect wallet 2021-08-20 23:17:02 +10:00
Tyler Shipe 0af7a8b8ee more trade form improvements 2021-08-18 16:15:17 -04:00
saml33 df6e97763a format usd values and small ui fixes 2021-08-15 23:31:59 +10:00
saml33 d95c2843c4 add portfolio view 2021-07-25 23:54:25 +10:00
Tyler Shipe 1b02a53314 update naming to match client 2021-06-23 11:32:33 -04:00
Maximilian Schneider 107c2e8ed3 add cancel perp order call and remove unused imports 2021-06-19 00:26:47 -04:00
Maximilian Schneider 2c487348f6 open orders are kinda adapted 2021-06-18 23:07:57 -04:00
Tyler Shipe 3f3ffb1a37 spot market orderbook on websockets 2021-06-18 19:57:02 -04:00
Maximilian Schneider e256ed4754 small fixes 2021-06-18 18:57:13 -04:00
Maximilian Schneider dcbb37fbb7 simple json stuff 2021-06-18 18:51:34 -04:00
Tyler Shipe 054cc5c82e remove console logs and fetch all markets 2021-06-18 18:38:09 -04:00
Tyler Shipe d3af1ac5b1 show open orders and wire up cancel order 2021-06-18 16:46:20 -04:00
Maximilian Schneider c610da11aa reenable trade form 2021-06-17 20:32:45 -04:00
Tyler Shipe c6dab39463 add interest rates 2021-06-17 14:40:44 -04:00
Tyler Shipe eac4adc18f add main action buttons below balances 2021-06-05 12:14:34 -04:00
saml33 3b5f22b815
User account page (#22)
* layout, overview, start on assets, borrows and open orders

* trade history, sortable data hook for tables, borrow page

* handle deposit and withdraw buttons

* borrow modal ui and integration + settle borrow for individual assets

* in orders balance to asset table and totals, responsive css, new connected wallet button + small tweaks

* account switch/creation flow

* accounts modal, update to usebalances hook

* handle settle, deposit before settle, save last account

* disable borrow/withdraw button when no account
2021-06-05 10:11:44 -04:00
Ralfs cfac0b91f8 Initial support for 5 tokens in mango group 2021-05-20 14:20:39 +03:00
saml33 23220e3555 trigger set alerts modal from margininfo 2021-05-02 00:02:21 +10:00
Tyler Shipe a0ef8f1e8e better handling of rounding issues in borrow and withdraw 2021-04-29 17:27:13 -04:00
Tyler Shipe f76c4e3918 handle devnet tokens 2021-04-26 12:59:01 -04:00
Tyler Shipe 7c4e913b50 use separate connections for websockets and one off transactions 2021-04-20 17:00:45 -04:00
Tyler Shipe 22435a7185 Fix deposit and withdraw modals 2021-04-16 17:09:17 -04:00
Tyler Shipe 062ac4105a all the fixes 2021-04-13 19:41:04 -04:00
Tyler Shipe 2a28c111c3 bring in more ant styling 2021-04-10 12:41:19 -04:00