Commit Graph

669 Commits

Author SHA1 Message Date
tlrsssss 3d2b485cf7
Merge pull request #114 from blockworks-foundation/use-birdeye-prices
Use birdeye prices
2023-04-07 16:41:32 -04:00
saml33 cbbc1e6a1f implement pr feedback 2023-04-06 22:54:37 +10:00
saml33 ea80f1698a implement pr feedback 2023-04-06 13:24:29 +10:00
saml33 4e7cfaf501 round pnl to 2dp 2023-04-06 10:07:36 +10:00
saml33 a0e4efa5bb merge main 2023-04-06 09:21:31 +10:00
saml33 b0a4162d95 merge main 2023-04-06 09:19:58 +10:00
Adrian Brzeziński 3bf2a7d470
list tokens from ui (#107)
* governance wip

* governance store + helpers wip

* get voter weight

* on boarding realms component

* token list wip

* pyth oracle get

* adv fields

* hidden adv fields

* create proposal fcn + mangolana

* register market wip

* list market fixes wip

* translations

* register to register trustless + layout changes

* fix layout

* match switchboard oracle

* loaders

* validation

* style components

* change icon

* copy update

* translations keys

* fix translation

* fix warning create open book market

* fix

* fix transaltion

* fix

* fix

* fix pr

* fix onboarding translation

* fix token owner record error in console

* remove axios

* generic vsr idl

* fix pr

* remove mangolana

* small folder ref

* additional prop in onboarding component

* fix translation

* fix navbar

* change order of governance in navbar

* fix proposal index

* fix pr

* remove link without href for mint

---------

Co-authored-by: saml33 <slam.uke@gmail.com>
2023-04-05 23:59:30 +02:00
saml33 55adbe7602
Merge pull request #115 from blockworks-foundation/expand-perp-activity
expand perp trade activity feed details
2023-04-05 23:47:39 +10:00
saml33 ea121b34b5
Merge pull request #112 from blockworks-foundation/save-trade-checkboxes
save trade checkboxes to local storage
2023-04-05 20:51:03 +10:00
saml33 cb10276cf5 hide max size trade button when not connected 2023-04-05 15:25:25 +10:00
saml33 6aec6fd144 expand perp trade activity feed details 2023-04-05 14:21:01 +10:00
saml33 4b86b28f19 fix perp health impact when no base size 2023-04-04 15:01:41 +10:00
saml33 b5a30fbe89 merge main 2023-04-04 13:49:28 +10:00
saml33 d34fa4a503 add change to market select dropdown 2023-04-04 12:48:31 +10:00
tlrsssss 5c03151a2e
Merge branch 'main' into perp-market-details-modal 2023-04-03 21:43:58 -04:00
saml33 a5f310c07c use birdeye for spot market change 2023-04-04 09:20:59 +10:00
saml33 dbc3cb4f57 save trade checkboxes to local storage 2023-04-03 14:51:36 +10:00
saml33 4ff68b31a5 retain size when toggling margin 2023-04-03 09:52:00 +10:00
saml33 e0463a9863 fix trade max size button 2023-04-01 21:05:53 +11:00
tjs 6067dd1665 fix trade form issue with large num of decimals 2023-03-31 19:39:07 -04:00
tjs 4055ddd072 fix btc spot chart 2023-03-31 19:12:00 -04:00
tjs 7c59a1c4fa only call perp history if market is perp market 2023-03-31 16:49:33 -04:00
tjs a2b482cbe8 handle large decimals like the bonk chart 2023-03-31 16:29:06 -04:00
saml33 13d3a3d482 link to all markets from tables when not on trade page 2023-03-31 21:03:20 +11:00
tjs 582ecfa2b3 use clients settle candidate function 2023-03-30 15:42:05 -04:00
microwavedcola1 bc113df1c3 Revert "settle fees along with pnl"
This reverts commit 92792112f7.
2023-03-30 13:08:05 +02:00
microwavedcola1 92792112f7 settle fees along with pnl
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-30 10:36:02 +02:00
saml33 d2e50e51ec fix roi and merge main 2023-03-29 21:38:26 +11:00
saml33 0057af54c1 merge main 2023-03-29 20:58:15 +11:00
saml33 a25dac1602 add perp market details modal 2023-03-29 13:10:05 +11:00
saml33 9d38639ec7 add open interest to perp market trade header 2023-03-29 10:57:59 +11:00
tjs 2c0a5bdb41 add useEffect dependencies 2023-03-28 15:23:30 -04:00
saml33 a2f05a8fa7 subscribe to orderbook on account page for market close 2023-03-28 21:12:11 +11:00
saml33 689dbde0b7 add focus to more components 2023-03-28 15:30:04 +11:00
saml33 1a8267adc1 fix perp market stats funding 2023-03-27 22:25:23 +11:00
saml33 dd0ba043e6 update focus styles 2023-03-27 14:11:10 +11:00
tlrsssss a9033f8c6b
Merge pull request #102 from blockworks-foundation/customize-trade-layout
customize trade layout settings
2023-03-26 13:45:58 -04:00
tjs cc723bfd4e better type definition for api response 2023-03-26 12:59:05 -04:00
Adrian Brzeziński bfc8d25f1b temp fix for api returning object for recent trades 2023-03-26 17:19:32 +02:00
tjs 505e8150a3 use react query for trade history 2023-03-25 17:16:42 -04:00
tjs 362c1c8aba fix oracle price updating 2023-03-25 14:47:37 -04:00
tjs fc929f8fb0 update the oracle for selected market via websocket 2023-03-25 14:19:57 -04:00
saml33 7cd26e9da5 add focus states and improve keyboard navigation 2023-03-24 23:22:29 +11:00
saml33 8caa115388 submit trade form on enter button press 2023-03-24 14:06:16 +11:00
saml33 caf98f8354 add customize trade page layout to settings 2023-03-23 19:29:13 +11:00
saml33 8684f380ae add loan origination fee to trade form 2023-03-17 23:48:38 +11:00
saml33 216e1c736b mobile trade history display and use perpsidebadge 2023-03-17 22:19:15 +11:00
saml33 674adc4e32 orders and unsettled mobile display 2023-03-16 23:44:00 +13:00
saml33 d74b4ccd2b mobile perp positions display 2023-03-16 22:38:17 +13:00
saml33 f7db0c6f92 add oracle price to perp positions 2023-03-15 22:31:30 +13:00
saml33 4d5ac94b9d change perp trade labels to long/short 2023-03-11 22:35:13 +13:00
tjs 58bb6488db improve 24h change 2023-03-10 13:17:24 -05:00
tjs 0713c3ffd7 reduce tooltip delay 2023-03-10 13:01:47 -05:00
tjs cac43c35d6 track market ids for trading view subscriptions 2023-03-10 10:49:22 -05:00
tjs 89364cb76d improve open orders display 2023-03-08 19:34:13 -05:00
tjs e93d8091da fix show asks on orderbook 2023-03-08 15:23:35 -05:00
saml33 d421fe856b improve toggle orderbook sides interaction 2023-03-08 21:19:31 +11:00
tjs b9d6857694 format funding and add market trade info msg 2023-03-07 12:31:32 -05:00
tjs 79c3daab36 convert funding to percent 2023-03-07 11:28:16 -05:00
tjs 90ab423d78 add a state variable to track header ready state in trading view 2023-03-06 14:50:07 -05:00
saml33 bd2113101f fix market select dropdown position 2023-03-06 14:33:13 +11:00
tjs a663b9404b check for mango tokens length before fetching price info 2023-03-05 17:44:33 -05:00
tjs 7f489f28bb move datafeed 2023-03-05 00:48:09 -05:00
tjs e0bfc5e429 reduce coingecko calls on page load 2023-03-05 00:47:29 -05:00
tjs 89cbe0e572 dont use postOnly on market trades 2023-03-04 23:06:45 -05:00
tjs 2d37f7f64a close mkt select dropdown on click 2023-03-04 15:59:42 -05:00
tjs 042f2e0386 add grids to trading view chart 2023-03-04 15:52:09 -05:00
tjs b44c498b7b combine trading view datafeeds 2023-03-04 15:42:35 -05:00
tjs fd061dcdbf move delegate checks into useUnownedAccount hook 2023-03-04 14:17:34 -05:00
tjs 36248b23d6 trade summary fixes 2023-03-04 13:53:53 -05:00
tjs 1b220ddf55 center modal text 2023-03-04 12:46:35 -05:00
tjs 0f87d0c07b fix trade history date display 2023-03-04 12:46:21 -05:00
tjs 6fce2640a4 fix header ready check on tv chart 2023-03-04 12:10:34 -05:00
tjs 991bb6c251 load tv chart buttons after header rdy 2023-03-04 12:08:19 -05:00
saml33 49c0d5517c merge main 2023-03-03 22:29:34 +11:00
tjs 4be933148f fix perp side badge 2023-03-02 21:40:49 -05:00
tjs 08866b20fe dont recreate chart when clicking on custom buttons 2023-03-02 20:37:20 -05:00
tjs 96f9945746 fix fee display in activity fee 2023-03-02 15:42:59 -05:00
saml33 49612197b8 bg images 2023-03-01 09:45:39 +11:00
saml33 5770720b5f add share positions to twitter 2023-03-01 09:45:39 +11:00
tjs 5293f04bdb prevent wordwrap on recent trades 2023-02-28 12:13:30 -05:00
tjs 3bed60af56 turn on lint errors for typescript any 2023-02-28 02:20:11 -05:00
tjs 1a763c8c9d fix stable price line updates 2023-02-26 20:04:02 -05:00
tjs 5cae40d347 use api for perp market trade history 2023-02-26 18:44:38 -05:00
tjs ebb0d546b7 useCallback to reduce trading view rerenders and memory leaks 2023-02-25 14:59:35 -05:00
tjs c3f3a34a63 only update orderbook websocket when changing markets 2023-02-25 14:59:35 -05:00
tjs 09133bf7b2 more refactoring for type safety 2023-02-23 19:28:49 -05:00
tjs 09852aa007 improve typing to fix errors with recent trades and history 2023-02-23 16:44:54 -05:00
tjs e9811605a1 condense market select box for now 2023-02-22 14:04:18 -05:00
tjs 939496def7 fix orderbook grouping bug 2023-02-22 00:11:56 -05:00
tjs d8f6153eab more improvements to open orders displayed in orderbook 2023-02-21 23:29:25 -05:00
tjs d2540c8be5 improved open order loading 2023-02-21 21:25:00 -05:00
tjs 921e791809 check if expiry is u64 max first 2023-02-21 17:25:45 -05:00
tjs fd73581483 fix number overflow 2023-02-21 17:17:25 -05:00
tjs 704018c616 improve open orders display on orderbook 2023-02-21 16:07:47 -05:00
tjs ccccb33843 fix trade fee display 2023-02-20 15:07:16 -05:00
tjs da05ee7ce0 move chart overrides into useeffect 2023-02-20 15:06:42 -05:00
tjs db12922284 more orderbook refactoring 2023-02-20 01:05:07 -05:00
tjs a41e36042c improve orderbook rendering performance 2023-02-20 00:43:35 -05:00
tjs 02775cab56 fix unsettled perp positions rerender 2023-02-16 14:17:03 -05:00
saml33 6013cfb9b1 revert tonumber fee rate 2023-02-16 22:15:33 +11:00
saml33 d33457aa91 fix available to borrow 2023-02-16 22:02:26 +11:00
Adrian Brzeziński d9fc7f11ac
Feature/kline perp stats (#88)
* kline perp wip

* fix

* make data more common with trading view

* datafeeds

* fixes

* fixes

* fix

* fix error

* better logging
2023-02-15 23:17:58 +01:00
tjs 2c8da6f1a7 improve trade history typing and trading view order lines colors 2023-02-15 16:49:56 -05:00
tjs 6f1e76a576 fix perp trade history fee display 2023-02-15 14:31:31 -05:00
saml33 066fd9b364 merge main 2023-02-15 10:41:47 +11:00
tjs 34cc9cd59e remove old env var 2023-02-14 12:06:10 -05:00
saml33 0437b708dc fix orders count for tv chart lines 2023-02-14 23:01:19 +11:00
saml33 27cf9f973b fix recent trades buys/sells for perp 2023-02-14 20:43:00 +11:00
saml33 e5f39c5b08 disable tooltips on mobile interactive elements 2023-02-14 15:39:30 +11:00
saml33 8e9c74de4a fix trade sounds for perp 2023-02-14 15:06:37 +11:00
tjs d096ec3d0a fix trade volume alert 2023-02-13 22:54:15 -05:00
saml33 bc85db22b5 fix undefined recent trade id 2023-02-14 14:06:50 +11:00
saml33 bbbbef3c19 favorites mobile 2023-02-14 13:53:13 +11:00
saml33 e7a920b373 sort trade market select list 2023-02-14 11:37:23 +11:00
saml33 23041e9d9b hide text when loading on mobile trade button 2023-02-14 09:49:59 +11:00
saml33 7d22e9b993 fix trade info tabs on mobile 2023-02-14 09:41:17 +11:00
tylersssss 7b3578a9b4
Merge pull request #82 from blockworks-foundation/tv-orders
add order lines to trading view chart
2023-02-13 10:50:54 -05:00
saml33 577c1446e5 remove tolocalestring from open orders 2023-02-13 16:08:32 +11:00
saml33 4f905cf850 add unsettled perp to mobile unsettled table 2023-02-13 15:17:10 +11:00
saml33 9dbf7c90a0 mobile perp positions table 2023-02-13 15:03:11 +11:00
saml33 6a05e60376 hide action buttons for unowned accounts 2023-02-13 13:46:41 +11:00
saml33 42d660b2be merge main 2023-02-12 20:40:26 +11:00
saml33 93956ca44f merge main 2023-02-12 20:33:50 +11:00
tylersssss 320853dbc3
Merge branch 'main' into trade-volume-alert 2023-02-11 15:21:07 -05:00
tylersssss 6ec8f9d262
Merge pull request #83 from blockworks-foundation/swap-reduce-only
handle swap reduce only
2023-02-10 11:34:15 -05:00
tylersssss d0e937b559
Merge pull request #78 from blockworks-foundation/pan/candles
Add basic perp ohlcv feed
2023-02-10 11:11:28 -05:00
saml33 f4209c3f88 merge main 2023-02-10 21:38:05 +11:00
saml33 c79045aaa0 align trade page tab order 2023-02-10 20:09:42 +11:00
saml33 c3d8f0af68 Merge branch 'main' into stable-price-tv-line 2023-02-10 16:09:02 +11:00
saml33 49f203f7e7 fix market change values 2023-02-10 14:20:46 +11:00
tjs efdd8a8934 fix typecheck errors 2023-02-09 17:04:57 -05:00
tjs 6277984325 use latest client 2023-02-09 16:23:44 -05:00
saml33 9c0cb6e6c1 add stable price line to tv chart 2023-02-09 22:41:15 +11:00
saml33 ed79cf7452 round spread to ticksize 2023-02-09 13:08:17 +11:00
saml33 8fa244a09b allow positions and trade history tables to scroll horizontally 2023-02-09 13:01:31 +11:00
Adrian Brzeziński 1ed50b9616
Feature/kline websockets (#84)
* web sockets

* websockets kline chart

* disconnect socket kline

* fix

* fixes
2023-02-09 02:40:34 +01:00
saml33 d838d39a57 fix perp entry price rounding 2023-02-09 12:37:30 +11:00
saml33 5388035d33 handle swap reduce only 2023-02-09 11:31:53 +11:00
saml33 2d9e73d207 fix perp position table size click 2023-02-08 22:29:03 +11:00
saml33 fdd0c97fcd add missing translation keys 2023-02-08 21:04:20 +11:00
saml33 21896ca2c3 add order lines to tv chart 2023-02-08 20:58:03 +11:00
tylersssss 971533009d
Merge branch 'main' into update-tab-count 2023-02-07 13:54:47 -05:00
tjs 4564c17ec4 filter mngo perp mkt; fix grouping tooltip 2023-02-03 11:04:29 -05:00
tjs e16107576f increase orderbook depth 2023-02-03 10:28:39 -05:00
tjs 7126f00c44 add a memo for selected market 2023-02-01 18:05:01 -05:00
Riordan Panayides 541a0114c7 Add basic perp ohlcv feed 2023-02-01 20:22:09 +00:00
saml33 b5e9229d65 update tab count on disconnect 2023-02-01 15:49:37 +11:00
saml33 68118a20b1 merge main 2023-01-30 11:53:05 +11:00
saml33 991d36aa62 fix trade history bug 2023-01-29 21:22:09 +11:00