Skip to content

Commit

Permalink
string for market order not enough liquidity (#620)
Browse files Browse the repository at this point in the history
* add one sided liquidity string

* generate

* 1.1.161
  • Loading branch information
aforaleka authored Jul 23, 2024
1 parent 228c44d commit 9e4b77b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions config/localization/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2205,6 +2205,7 @@
"MARKET_ORDER_ERROR_INDEX_PRICE_SLIPPAGE": "This market order would result in {SLIPPAGE} oracle price slippage given current liquidity. Please use a limit order if you still intend to place this order.",
"MARKET_ORDER_ERROR_ORDERBOOK_SLIPPAGE": "This market order would result in {SLIPPAGE} of orderbook price impact given current liquidity. Please use a limit order if you still intend to place this order.",
"MARKET_ORDER_NOT_ENOUGH_LIQUIDITY": "There is not enough liquidity to fill this market order, please try a smaller order amount.",
"MARKET_ORDER_ONE_SIDED_LIQUIDITY": "This market order is not recommended due to one-sided orderbook liquidity. Please place a limit order instead.",
"MARKET_ORDER_PRICE_IMPACT_AT_MAX_LEVERAGE": "This order has a non-zero price impact and could potentially put your position over max leverage. Please try a smaller order amount.",
"NEW_POSITION_SIZE_OVER_MAX": "This trade could result in a position size over the maximum size of {MAX_SIZE} {SYMBOL}.",
"NO_EQUITY_DEPOSIT_FIRST": "You must deposit funds before you can place orders.",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dydxprotocol/v4-localization",
"version": "1.1.160",
"version": "1.1.161",
"description": "v4 localization",
"main": "index.ts",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion scripts/generated/app.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// !! GENERATED FILE - DO NOT EDIT

// Generated from ../config/localization/en/app.json using ./codegen_localization_app.swift
// Generated from ../config/localization/en/app.json using codegen_localization_app.swift

export const APP_STRING_KEYS = {

Expand Down Expand Up @@ -1896,6 +1896,7 @@ export const ERRORS_STRING_KEYS = {
MARKET_ORDER_ERROR_INDEX_PRICE_SLIPPAGE: 'ERRORS.TRADE_BOX.MARKET_ORDER_ERROR_INDEX_PRICE_SLIPPAGE',
MARKET_ORDER_ERROR_ORDERBOOK_SLIPPAGE: 'ERRORS.TRADE_BOX.MARKET_ORDER_ERROR_ORDERBOOK_SLIPPAGE',
MARKET_ORDER_NOT_ENOUGH_LIQUIDITY: 'ERRORS.TRADE_BOX.MARKET_ORDER_NOT_ENOUGH_LIQUIDITY',
MARKET_ORDER_ONE_SIDED_LIQUIDITY: 'ERRORS.TRADE_BOX.MARKET_ORDER_ONE_SIDED_LIQUIDITY',
MARKET_ORDER_PRICE_IMPACT_AT_MAX_LEVERAGE: 'ERRORS.TRADE_BOX.MARKET_ORDER_PRICE_IMPACT_AT_MAX_LEVERAGE',
NEW_POSITION_SIZE_OVER_MAX: 'ERRORS.TRADE_BOX.NEW_POSITION_SIZE_OVER_MAX',
NO_EQUITY_DEPOSIT_FIRST: 'ERRORS.TRADE_BOX.NO_EQUITY_DEPOSIT_FIRST',
Expand Down

0 comments on commit 9e4b77b

Please sign in to comment.