Commit Graph

75 Commits

Author SHA1 Message Date
tjshipe 4785d4986b
Merge pull request #135 from blockworks-foundation/max/disable-spot-margin
disable spot margin by default
2022-01-16 19:54:24 -06:00
Tyler Shipe eb503ff6a1 use latest client to add support for createOpenOrders 2022-01-15 21:32:31 -06:00
Maximilian Schneider 68b9ef1709 make spot margin configurable 2022-01-14 11:44:10 -08:00
Maximilian Schneider 9ff52488da disable spot margin by default 2022-01-14 11:28:28 -08:00
Tyler Shipe dd5ec97935 handle when api data is missing in swap page 2022-01-13 12:52:11 -06:00
Tyler Shipe 3271851f5e add perpmarket type checks 2022-01-13 10:38:55 -06:00
Tyler Shipe e1114d7477 handle when perpmarket isnt loaded yet 2022-01-12 16:46:41 -06:00
tjshipe a7feab1665
Merge pull request #130 from rjpeterson/swap-translations
Update Swap page translations & add dayjs locales
2022-01-11 20:33:25 -05:00
ImpossiblePairs 0ed7263f64
Fix reduceOnly checkbox functionality
Updated reduceOnly checkbox functionality so that when the reduceOnly checkbox is active, it uses "percentage x basePosition" instead of "percentage x max" which is only appropriate when reduceOnly is inactive.
2022-01-11 11:59:14 -08:00
rjpeterson 0663c321e4 add missed translations. rename common:slippage key 2022-01-09 16:31:56 -06:00
Tyler Shipe 24d93d0d89 add padding to global notification component 2022-01-08 19:36:24 -05:00
Tyler Shipe 981482414e Remove disabled trade button after submitting 2022-01-08 12:27:06 -05:00
rjpeterson 7abb205502 translate swap page 2021-12-29 19:04:55 -06:00
saml33 9b7fa7a539 add slippage presets 2021-12-14 21:03:54 +11:00
Tyler Shipe 714de8e34f update srm fees 2021-12-08 12:27:48 -05:00
Tyler Shipe 26da87acec fix issue with post only and placePerpOrder 2021-12-04 19:31:55 -05:00
Tyler Shipe fb2cc2acb5 add slippage warning for stop loss and take profit 2021-12-03 18:55:26 -05:00
tjshipe b12aada255
Merge pull request #101 from blockworks-foundation/dd/limitioc
Dd/limitioc
2021-12-03 18:39:30 -05:00
Tyler Shipe 3ce0e1580e use latest mango client 2021-12-03 17:36:34 -05:00
dd 8438df9ccc added logic for warning user about stop loss slippage; Added TODO for tyler 2021-12-03 17:21:21 -05:00
Tyler Shipe 2a05123784 set reduceOnly false when changing order types 2021-12-03 13:36:31 -05:00
Tyler Shipe a80f03247f use latest mango-client 2021-12-03 13:01:09 -05:00
dd 007f874563 added range checks for slippage 2021-12-03 12:31:22 -05:00
dd 8b7fcd30c1 merged in main 2021-12-03 10:45:29 -05:00
dd 765a7f768e Merge branch 'main' into dd/limitioc
# Conflicts:
#	components/trade_form/AdvancedTradeForm.tsx
2021-12-03 10:40:47 -05:00
saml33 2ee67b4693 merge and default slippage to 2.5% 2021-12-03 21:39:10 +11:00
saml33 7f28a68008 add set custom max slippage 2021-12-03 21:34:10 +11:00
Tyler Shipe 0ae021596c Show reduce only flag for now when doing a market order 2021-12-03 02:38:17 -05:00
dd 60b2c4b92d updated MarketClose to have maxSlippage at 2.5% 2021-12-03 00:15:03 -05:00
dd 1adb0d8f34 added postOnlySlide 2021-12-02 23:30:59 -05:00
dd 588ae8dd18 Looks like max slippage on perp Market orders is working 2021-12-02 21:38:44 -05:00
dd f248ab7805 Added code for maxSlippage and removal of market order type; Changed mark price to just be book mid. 2021-12-02 17:33:35 -05:00
Tyler Shipe 50c514939c dont disable trade button if not enough sol 2021-12-01 01:18:12 -05:00
tjshipe f91d363158
Merge pull request #93 from rjpeterson/no-sol-notif
disable trade button and show warning when user has no SOL
2021-12-01 01:14:23 -05:00
tjshipe 68e4f4d19d
Merge branch 'main' into update-translations 2021-12-01 01:12:59 -05:00
Tyler Shipe 6488eb6802 fix console errors 2021-12-01 00:38:05 -05:00
Tyler Shipe 84233b2a56 improve rerender when cancelling orders for a market other than the one selected 2021-11-30 18:35:49 -05:00
Tyler Shipe 4eb7cd3934 forceReload components when mango account is updated in store 2021-11-30 12:32:14 -05:00
Tyler Shipe b1b5477273 reset post only flag when switching trade types 2021-11-29 12:04:50 -05:00
rjpeterson 3aa03c3909 disable trade button and show warning when user has no SOL 2021-11-26 00:05:21 -10:00
Maximilian Schneider 3d1544cc09
add tooltip to country-not-allowed block (#89) 2021-11-25 19:25:50 +01:00
rjpeterson 6b223e62e1 rebase & add statsperps + account history translation 2021-11-23 22:17:17 -10:00
tjshipe 8ae27aa62c
Merge pull request #82 from blockworks-foundation/show/hide-reduce-only
hide reduce only when no position or wrong side
2021-11-23 18:19:22 -05:00
Riordan Panayides edac2473fc Allow UK spot trading 2021-11-22 23:54:51 +00:00
saml33 96358a078c hide reduce only when no position or wrong side 2021-11-19 14:13:18 +11:00
Maximilian Schneider fb1977e720 disable size too large 2021-11-12 15:40:42 +00:00
saml33 30f971cfac fix: mobile styling to accomodate new markets 2021-11-03 22:43:34 +11:00
Tyler Shipe 56b7466799 move fees into trade box, prevent wrapping in market menu item 2021-11-01 16:20:30 -04:00
Tyler Shipe f3361a8953 only calc spot max if market config is spot market 2021-10-31 14:24:33 -04:00
Tyler Shipe 9aa9d152c9 fixes for ada perp mkt 2021-10-29 14:57:50 -04:00