Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce-only prompt text. Abacus will provide key in payload #240

Merged
merged 2 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions config/localization/en/tooltips.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@
"TITLE": "Post-Only",
"BODY": "Orders with post-only enabled can only be placed as maker orders. If the order crosses other orders at the time of placement, it will be automatically cancelled."
},
"POST_ONLY_TIMEINFORCE_GTT": {
"TITLE": "Post-Only",
"BODY": "Post-Only is only available if Time in Force is set to Good Til Time."
},
"PRICE_IMPACT": {
"TITLE": "Price Impact",
"BODY": "The difference between the expected execution price for your order and the best order on the bid or ask side. This will increase for larger trade sizes."
Expand All @@ -167,6 +171,14 @@
"TITLE": "Reduce-Only",
"BODY": "Reduce-Only prevents an order from changing the side of your position (long to short, or short to long). An order with Reduce-Only set will automatically resize and cancel itself as your position changes."
},
"REDUCE_ONLY_TIMEINFORCE_IOC_FOK": {
"TITLE": "Reduce-Only",
"BODY": "Reduce-Only is only available if Time in Force is set to IOC or FOK."
},
"REDUCE_ONLY_EXECUTION_IOC_FOK": {
"TITLE": "Reduce-Only",
"BODY": "Reduce-Only is only available if Execution is set to IOC or FOK."
},
"SPREAD": {
"TITLE": "Spread",
"BODY": "The difference in price between the highest bid (the price a buyer is willing to buy for) and lowest ask (the price a seller is willing to sell for) an asset."
Expand Down
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.13",
"version": "1.1.14",
"description": "v4 localization",
"main": "index.ts",
"scripts": {
Expand Down
2 changes: 1 addition & 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
7 changes: 7 additions & 0 deletions scripts/generated/tooltips.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,19 @@ export const TOOLTIP_STRING_KEYS = {
ORDER_AMOUNT_USD_TITLE: 'TOOLTIPS.TRADE.ORDER_AMOUNT_USD.TITLE',
POST_ONLY_BODY: 'TOOLTIPS.TRADE.POST_ONLY.BODY',
POST_ONLY_TITLE: 'TOOLTIPS.TRADE.POST_ONLY.TITLE',
POST_ONLY_TIMEINFORCE_GTT_BODY: 'TOOLTIPS.TRADE.POST_ONLY_TIMEINFORCE_GTT.BODY',
POST_ONLY_TIMEINFORCE_GTT_TITLE: 'TOOLTIPS.TRADE.POST_ONLY_TIMEINFORCE_GTT.TITLE',
PRICE_IMPACT_BODY: 'TOOLTIPS.TRADE.PRICE_IMPACT.BODY',
PRICE_IMPACT_TITLE: 'TOOLTIPS.TRADE.PRICE_IMPACT.TITLE',
REALIZED_PNL_BODY: 'TOOLTIPS.TRADE.REALIZED_PNL.BODY',
REALIZED_PNL_TITLE: 'TOOLTIPS.TRADE.REALIZED_PNL.TITLE',
REDUCE_ONLY_BODY: 'TOOLTIPS.TRADE.REDUCE_ONLY.BODY',
REDUCE_ONLY_TITLE: 'TOOLTIPS.TRADE.REDUCE_ONLY.TITLE',
REDUCE_ONLY_EXECUTION_IOC_FOK_BODY: 'TOOLTIPS.TRADE.REDUCE_ONLY_EXECUTION_IOC_FOK.BODY',
REDUCE_ONLY_EXECUTION_IOC_FOK_TITLE: 'TOOLTIPS.TRADE.REDUCE_ONLY_EXECUTION_IOC_FOK.TITLE',
REDUCE_ONLY_TIMEINFORCE_IOC_FOK_BODY: 'TOOLTIPS.TRADE.REDUCE_ONLY_TIMEINFORCE_IOC_FOK.BODY',
REDUCE_ONLY_TIMEINFORCE_IOC_FOK_TITLE: 'TOOLTIPS.TRADE.REDUCE_ONLY_TIMEINFORCE_IOC_FOK.TITLE',
REWARD_HISTORY_BODY: 'TOOLTIPS.TRADE.REWARD_HISTORY.BODY',
SPREAD_BODY: 'TOOLTIPS.TRADE.SPREAD.BODY',
SPREAD_TITLE: 'TOOLTIPS.TRADE.SPREAD.TITLE',
STEP_SIZE_BODY: 'TOOLTIPS.TRADE.STEP_SIZE.BODY',
Expand Down
Loading