Skip to content

Commit

Permalink
tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
moo-onthelawn committed Jul 24, 2024
1 parent d4ee55e commit ee78f33
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 0 additions & 2 deletions config/localization/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -1326,9 +1326,7 @@
"NEXT_IN": "Next in {TIME}",
"NOTIONAL_VALUE": "Notional Value",
"OFFSETTING": "Offsetting",
"OHLC": "OHLC",
"OHLC_VIA_MID_PRICE": "OHLC (via mid-price)",
"OHLC_TOOLTIP": "Enable or disable OHLC data via mid-price. Disabling this will only display OHLC data from the orderbook.",
"OPEN_INTEREST": "Open Interest",
"OPEN_POSITIONS": "Open Positions",
"OPEN_STATUS": "Open",
Expand Down
8 changes: 7 additions & 1 deletion config/localization/en/tooltips.json
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,16 @@
"BODY": "To ensure the security of the protocol, dYdX Chain validators delay the settlement of dYdX Chain DYDX."
}
},
"TRADE_CHART": {
"OHLC": {
"TITLE": "OHLC",
"BODY": "Enable or disable OHLC data via mid-price. Disabling this will only display OHLC data from the orderbook."
}
},
"NEW_MARKET_WIDGET": {
"REFERENCE_PRICE": {
"TITLE": "Reference Price",
"BODY": "The Reference Price is the rolling 30 day average of the market's price and is used as an input to automatically calculate the market's parameters on dYdX Chain. The Reference Price should approximately be the same as the market's current price (i.e. round down to the same powers of 10)."
}
}
},
}
2 changes: 0 additions & 2 deletions scripts/generated/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1479,8 +1479,6 @@ export const APP_STRING_KEYS = {
NEXT_IN: 'APP.TRADE.NEXT_IN',
NOTIONAL_VALUE: 'APP.TRADE.NOTIONAL_VALUE',
OFFSETTING: 'APP.TRADE.OFFSETTING',
OHLC: 'APP.TRADE.OHLC',
OHLC_TOOLTIP: 'APP.TRADE.OHLC_TOOLTIP',
OHLC_VIA_MID_PRICE: 'APP.TRADE.OHLC_VIA_MID_PRICE',
OPEN_INTEREST: 'APP.TRADE.OPEN_INTEREST',
OPEN_POSITIONS: 'APP.TRADE.OPEN_POSITIONS',
Expand Down
5 changes: 5 additions & 0 deletions scripts/generated/tooltips.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ export const TOOLTIP_STRING_KEYS = {
UNREALIZED_PNL_BODY: 'TOOLTIPS.TRADE.UNREALIZED_PNL.BODY',
UNREALIZED_PNL_TITLE: 'TOOLTIPS.TRADE.UNREALIZED_PNL.TITLE',

// TRADE_CHART

OHLC_BODY: 'TOOLTIPS.TRADE_CHART.OHLC.BODY',
OHLC_TITLE: 'TOOLTIPS.TRADE_CHART.OHLC.TITLE',

// TRANSFER_AND_DEPOSIT

ALLOWANCE_AND_DEPOSIT_NETWORK_FEE_BODY: 'TOOLTIPS.TRANSFER_AND_DEPOSIT.ALLOWANCE_AND_DEPOSIT_NETWORK_FEE.BODY',
Expand Down

0 comments on commit ee78f33

Please sign in to comment.