Changelog
2.0.0 — September 18, 2026
This major release removes the Gelato relay surface. Gelato shut its relay services down on September 1, 2026, and the GMX Relay helpers added in 1.8.2 replace it.
- Breaking: Removed the
@gmx-io/sdk/utils/gelatoRelaysubpath:getGelatoRelayerClient(), theStatus,TerminalStatus, andGelatoEvmRelayerClienttypes, and theStatusCodere-export from@gelatocloud/gasless.StatusCodeis now exported from@gmx-io/sdk/utils/expresswith the same values. - Breaking: Removed
sendToGelatoRelay(),waitForGelatoTask(),GelatoRelayError,GelatoRelayResult, andfetchGelatoGasTankBalance()from@gmx-io/sdk/utils/express. UsesendToGmxRelay(),getGmxRelayTaskStatus(),waitForGmxRelayTask(),GmxRelayError, andisPermanentRelayError(), or the express order methods of the SDK v2 client, which submit through the GMX API. - Breaking: Removed
GELATO_API_KEYSandMIN_RELAYER_FEE_USDfrom@gmx-io/sdk/configs/express, and theGelatoRelayAddressentries from@gmx-io/sdk/configs/contracts. - Breaking: Removed
gelatoStatusCodefromCrossChainWithdrawStatusResponse. The GMX API no longer returns it. - Removed the
@gelatocloud/gaslessdependency. - The relay router contract names (
GelatoRelayRouter,SubaccountGelatoRelayRouter), the EIP-712 domain nameGmxBaseGelatoRelayRouterreturned bygetGelatoRelayRouterDomain(), andGELATO_RELAY_FEE_MULTIPLIER_FACTOR_KEYkeep their names: they identify deployed contracts and on-chain keys.
1.9.1 — September 17, 2026
This release adds GM LP earnings and protocol stats reads, ports the contracts' resulting-position margin check for increase orders, and removes delisted markets from the packaged configs.
- Breaking: Removed delisted markets and their unused tokens from the packaged configs: TON, MELANIA, AI16Z, MKR, OM, PI, WELL, KTA, and IP on Arbitrum, and MELANIA and DAI.E on Avalanche. Remove references to these markets and tokens when upgrading from 1.8.2.
- Added
fetchGmUserEarnings({ account })to the SDK v2 client forGET /v1/yield/gm-user-earnings: lifetime and 7-day fee earnings (lifetimeFeeUsd,recent7dFeeUsd) per GM pool for an LP account. Added the matching@gmx-io/sdk/v2type exports:GmUserEarningsParams,GmUserEarningsResponse,GmUserEarningEntry, andGmUserEarningsWindow. - Added protocol stats reads to
@gmx-io/sdk/v2:fetchApiProtocolStatsSummary(),fetchApiProtocolStatsTimeseries(), andfetchApiProtocolStatsSources()wrap/v1/stats/summary,/v1/stats/timeseries, and/v1/stats/sourcesand take an{ api }HTTP client context. Added the matchingProtocolStats*type exports andgetStatsApiUrl(environment)to@gmx-io/sdk/configs/api. Stats are chain-agnostic and served by the Arbitrum API deployment. - Added monthly buyback buckets:
BuybackWeeklyStatsResponsenow includesmonths, typed as the newBuybackMonthData[]. - Added the contracts' resulting-position margin check for increase orders to
@gmx-io/sdk/utils/trade:getIncreaseResultingPositionMarginState(),getResultingPositionMarginState(),PositionMarginFailureReason, andgetIsMaxLeverageMarginReason(), plusgetLimitOrderTypeByTradeMode(). Added the supportinggetIncreaseEvaluationIndexPrice()andgetIsIncreaseOrderExecutableNow()to@gmx-io/sdk/utils/prices, andgetMarketInfoWithOpenInterestDelta()to@gmx-io/sdk/utils/markets. getIncreasePositionAmounts()now evaluates resting limit and stop increase orders at the trigger price, charges a size-only increase's fees to the position, and accepts an optionalproDiscountFactor.- Added pro-tier fee discounts:
getPositionFee()accepts an optionalproDiscountFactorand applies the larger of the referral and pro-tier discounts. AddedPRO_TRADER_TIER_KEY,PRO_DISCOUNT_FACTOR_KEY,proTraderTierKey(account), andproDiscountFactorKey(proTier)to@gmx-io/sdk/configs/dataStore. - Price impact now uses exact integer exponentiation instead of floating-point math, matching the contracts. The new helpers
applyExponentFactor()andprbPow()are exported from@gmx-io/sdk/utils/numbers. getPositionPnlUsd()now takes the pool PnL for the traders' PnL cap from the same side as the deployed contracts and no longer truncates the capped PnL to 18 decimals.- Added
getIsPositionBelowMinCollateralForLeverage()andgetLiquidationPriceImpactDeltaUsd()to@gmx-io/sdk/utils/positions. - Added the
ArbSysprecompile address to the Arbitrum and Arbitrum Sepolia contract configs. - Version 1.9.0 was not published to npm; its changes ship in this release.
1.8.2 — August 25, 2026
This release adds the GMX Relay helpers ahead of the Gelato shutdown and lists the QQQ and SPY equity index markets.
- Added GMX Relay helpers to
@gmx-io/sdk/utils/express.sendToGmxRelay({ chainId, txnData, apiUrl? })submits bare relay-router calldata through the GMX API (POST /v1/relay/submit) and returns{ taskId, status }.getGmxRelayTaskStatus()reads a task throughPOST /v1/relay/status, andwaitForGmxRelayTask({ chainId, taskId, apiUrl?, timeout?, pollingInterval? })polls it to a final result.GmxRelayErrorcarries the APItraceIdindata, andisPermanentRelayError()separates permanent failures from retryable ones. - Added the matching types:
GmxRelayStatus(pending,executed,reverted,failed,unknown),GmxRelayResult,GmxRelayStatusView,GmxRelayDebugView, andGmxRelayTaskResult. - Deprecated
GELATO_API_KEYS,sendToGelatoRelay(), andwaitForGelatoTask(): Gelato shuts its relay services down on September 1, 2026. Migrate to the GMX Relay helpers. - Added Arbitrum market and token config entries for the QQQ/USD [WETH-USDC] and SPY/USD [WETH-USDC] equity index markets.
- Added
decreasePositionSwapTypeto transformed trade actions from@gmx-io/sdk/utils/tradeHistory. - Version 1.8.1 was not published to npm; its changes ship in this release.
1.8.0 — August 19, 2026
This release adds the combined GM pool yield/PnL read for integrators.
- Added
fetchGmPoolYieldPnl(params?)to the SDK v2 client forGET /v1/yield/gm-pools: fee-only APY (same composition as/apybaseApy) plus trader-perspective PnL (tradersPnlUsd,tradersPnlApr, optional realized/unrealized components) per GM market token, filterable by pool addresses over the standard periods. Positive trader PnL means traders gained against the pool. - Added the matching
@gmx-io/sdk/v2type exports:GmPoolsYieldPnlParams,GmPoolsYieldPnlResponse,GmPoolYieldPnlEntry,GmPoolYieldPnlComponents, andGmPoolYieldPnlWindow.
1.7.0 — August 13, 2026
This release adds JIT-aware trading capacity and aligns SDK calculations, parsing, and trade-history data with current API responses.
fetchMarketsTickers()now returnsMarketTickerWithCapacity[]: each ticker optionally carriescapacityLongandcapacityShort— JIT-aware trading capacity with ajitDataStatusfreshness flag (available/stale/unavailable) and the limiting factor (reserve/openInterest/both/notApplicable).- Added
getTradingCapacity({ symbol, direction })and the matching@gmx-io/sdk/v2type exports:TradingCapacity,MarketTickerWithCapacity,TradingCapacityLimitingFactor,JitDataStatus,MarketDataStatus, andGetTradingCapacityParams. - Added prepare-order capacity estimates, structured validation warnings, and
parsePrepareOrderError()/isPrepareOrderError(). - Added collateral-split open-interest fields and
getPositiveMarketPnl()so profitable position PnL caps match the v2.2c positive-PnL calculation. - Added
parseUint256DecimalString()andisUint256(), and changedremoveTrailingZeros()to trim numeric strings without converting them to JavaScript numbers. - Added
swapFeeUsdandswapImpactUsdto transformed swap trade actions from@gmx-io/sdk/utils/tradeHistory.
1.6.4 — July 31, 2026
This release prepares the SDK for v2.2c market and position API responses, and removes Botanix chain support.
- Breaking: Removed Botanix chain support, including the Botanix staking swap helpers re-exported from
@gmx-io/sdk/utils/swap. Remove Botanix chain, token, market, contract, and staking references when upgrading from 1.6.3. - Added the v2.2c market and position response fields.
- Matched position impact calculations to token-denominated open interest and virtual inventory.
- Added runtime validation for v2.2c API responses.
- Removed Botanix from the packaged chain and token configuration, together with Botanix-only swap helpers.
- Removed
CombinedSwapStrategy,ExternalSwapPath, and theBotanixStakingexternal-swap aggregator from the public type surface.
1.6.3 — June 10, 2026
This release improves SDK v2 One-Click Trading subaccount state handling.
- Added the
subaccountStatusgetter toGmxApiSdk, exposing parsed on-chain subaccount status withbigintfields. - Added
refreshSubaccountState(account)to refresh and reconcile the SDK's stored subaccount state against/subaccounts/status. activateSubaccount(mainSigner)now signs owner approvals only when needed; once the approval is synced on-chain, SDK-managed orders use an empty subaccount approval withsignature: "0x"and sign order typed data with the generated subaccount key.- Improved subaccount approval handling so prepared approvals are refreshed when on-chain nonce, expiry, or action-count state makes the stored approval unusable.
- Added quota safeguards for SDK-managed subaccount orders: empty approvals validate current subaccount status, near-exhausted action limits force a status refresh before prepare, and accepted relay submissions update cached action counts so approval refresh decisions stay consistent.
- Preserved prepared subaccount approval metadata after failed structured submit responses so retries include the required approval payload.
- Rejected mismatched caller-supplied
subaccountAddressorsubaccountApproval.subaccountwhen SDK-managed subaccount signing is active.
1.6.2 — June 9, 2026
This release adds SPCX market metadata and leverage handling.
- Added Arbitrum SDK config entries for the SPCX/USD [WETH-USDC] market and SPCX token metadata.
- Added generated market config and value keys needed by the SPCX market.
- Added SPCX-specific leverage cap handling in market utilities so UI max leverage is capped at 10x when applicable.
1.6.1 — June 9, 2026
- Added
referralCodeto the SDK v2PrepareOrderRequesttype. - Hosted GMX API order prepare requests now accept
referralCodefor increase, decrease, swap, and TP/SL order payloads. The field can be a human-readable registered referral code or an already encodedbytes32value. - Human-readable referral codes are encoded by the API before signing and support letters, digits, and underscores, up to 20 characters.
- Fixed referral code forwarding in SDK v2 order transaction requests so
referralCodeis included when preparing API-relayed orders.
1.6.0 — June 8, 2026
This release promotes the recent SDK v2 API, GMX Account, order, and helper surface from the alpha series into the stable 1.6.x line.
- Restored API peer fallback behavior in SDK API host config and related HTTP-backed reads.
- Added
uiFeeReceiverhandling for TWAP UI fee receiver helpers. - Included the SDK v2 read, GMX Account, wallet, subaccount, and API-relayed order helpers introduced during the
1.5.0-alphaseries in the stable release line.
1.5.0-alpha-18 — May 20, 2026
- Added optional
uiFeeReceiversupport for API-driven order transaction helpers - Added GMX Account operation examples
- Documented SDK v2 trade-history reads through
fetchTrades()andsearchTrades() - Documented SDK v2 one-click-trading lifecycle:
activateSubaccount()signs owner approvals only when needed,refreshSubaccountState()updates tracked on-chain status, and synced subaccount orders use an empty approval withsignature: "0x"while signing each order with the subaccount key.
1.5.0-alpha-17 — May 17, 2026
- Added public gas utility subpath exports under
@gmx-io/sdk/utils/gas/*. - Expanded GMX Account helper coverage for SDK v2 integrations.
1.5.0-alpha-16 — May 16, 2026
- Added SDK v2 trade-history reads through
fetchTrades()andsearchTrades(). - Added SDK v2 JIT liquidity reads through
fetchJitLiquidityInfo(). - Added SDK v2 GMX Account helpers for same-chain deposits and withdrawals, cross-chain deposits and withdrawals, bridge-out parameter building, ERC-20 approval building, and cross-chain withdrawal status polling.
1.5.0-alpha-15 — May 8, 2026
This release updates position valuation helpers, leverage-limit calculation, and package metadata for Release 110.
- Removed the
@gmx-io/sdk/configs/marketHourspublic config module. Max allowed leverage is now derived from live market fields instead of static market-hours sentinel values. - Added
getMaxAllowedLeverage({ minCollateralFactor, minCollateralFactorForLiquidation, positionFeeFactorForBalanceWasNotImproved })to@gmx-io/sdk/utils/markets. - Added after-all-fees position fields and helpers:
netValueAfterAllFees,pnlAfterAllFees,pnlAfterAllFeesPercentage,getPositionNetValueAfterAllFees, andgetPositionPnlAfterAllFees. - Simplified
getPositionNetValueandgetPositionPnlAfterFeesso they only account for collateral, PnL, borrowing fees, and funding fees. Use the after-all-fees helpers when you need price impact and closing fee effects included. - Added external swap support to
SwapStrategyForSwapOrders.
1.5.0-alpha-14 — May 7, 2026
This release adds MegaETH market metadata and expands SDK trade-history data.
- Added MEGA/USD market and token config entries for Arbitrum and MegaETH.
- Added
swapFeeUsdto transformed trade actions from@gmx-io/sdk/utils/tradeHistory. - Added
swapImpactUsd,totalImpactUsd,swapFeeUsd, andliquidationFeeAmountto the SDK v1 trade-actions GraphQL selection.
1.5.0-alpha-13 — April 24, 2026
This release updates generated market and token metadata for new Arbitrum energy markets and includes a swap-routing fallback fix.
- Added Arbitrum SDK config entries for WTIOIL/USD, BRENTOIL/USD, and NATGAS/USD markets and their synthetic index tokens.
- Added
searchAliasesto token config metadata so integrations can expose alternate ticker search terms such as CL and BZ. - Added market-hours leverage config through
@gmx-io/sdk/configs/marketHours, includingMARKET_HOURS_MARKETSandMarketHoursConfig. - Fixed a swap-routing fallback case so route selection handles zero-output candidates correctly.
1.5.0-alpha-12 — April 24, 2026
This release updates API host configuration and adds helpers for restoring encrypted subaccount keys.
- Updated the Arbitrum Sepolia API URL returned by
getApiUrl(421614). Test hosts can change between alpha releases, so integrations should usegetApiUrl(chainId)instead of hardcoding the host. generateSubaccount(mainSigner)now returns an AES-encryptedprivateKeyvalue.- Added
decryptSubaccountPrivateKey(encryptedPrivateKey, mainAccountAddress)andcreateSubaccountSignerFromConfig(encryptedPrivateKey, mainAccountAddress)to@gmx-io/sdk/utils/subaccount.
1.5.0-alpha-11 — April 23, 2026
This release improves API peer handling and custom HTTP client injection for GmxApiSdk.
- Exported
HttpClientWithFallbackand theIHttptype from@gmx-io/sdk/v2. - Added the
apiconstructor option toGmxApiSdk, letting integrations inject a custom HTTP client instead of using the defaultHttpClientWithFallback. GmxApiSdkuses the configured API peer list by default and can fail over between peer hosts for server or network errors.
1.5.0-alpha-10 — April 14, 2026
This release adds order submission, one-click-trading subaccounts, wallet helpers, and a signer abstraction to GmxApiSdk, and migrates the SDK's API hosts to the new peer-region deployment.
- Added order submission, edit, and cancellation to
GmxApiSdkin@gmx-io/sdk/v2.executeExpressOrder(request, signer)prepares, signs, and submits an order in one call via the GMX API and Gelato relay. Integrations that manage their own signing UX can use the manualprepareOrder → signOrder → submitOrderflow.prepareEditOrder,prepareCancelOrder,prepareCollateral, andfetchOrderStatusround out the order lifecycle. SDK v1 and direct contracts remain available for RPC-based integrations. - Added one-click-trading (1CT) subaccount support to
GmxApiSdk.generateSubaccount(mainSigner)deterministically derives a subaccount from the main signer's signature,activateSubaccount(mainSigner, { expiresInSeconds?, maxAllowedCount? })signs aSubaccountApprovaland stores it, andclearSubaccount()removes it. Once active,executeExpressOrdersigns with the subaccount automatically. The lower-level helpersfetchSubaccountStatus,prepareSubaccountApproval, andsignSubaccountApprovalare also exposed, alongsidesubaccountAddress,hasActiveSubaccount, andsubaccountApprovalMessagegetters. - Added wallet helpers to
GmxApiSdk:fetchWalletBalances({ address }),fetchAllowances({ address, spender }), andbuildApproveTransaction(params)for building ERC-20 approval calldata. - Added a signer abstraction.
IAbstractSigneris the interfaceGmxApiSdkmethods accept for signing, andPrivateKeySigneris a built-in implementation for server-side integrations. Both are exported from@gmx-io/sdk/v2. - Migrated mainnet API base URLs in
@gmx-io/sdk/configs/apito the new peer pairhttps://{chain}.gmxapi.io/v1andhttps://{chain}.gmxapi.ai/v1for Arbitrum, Avalanche, Botanix, and MegaETH.getApiUrl(chainId)returns the default peer, andgetApiFallbackUrls(chainId)returns the additional peer list.
1.5.0-alpha-9 — March 25, 2026
This release expands GmxApiSdk with staking-power and buyback reads.
- Added
fetchStakingPower(params)toGmxApiSdkin@gmx-io/sdk/v2. This method wraps/staking/powerand returnsStakingPowerResponse. - Added
fetchBuybackWeeklyStats()toGmxApiSdkin@gmx-io/sdk/v2. This method wraps/buyback/weekly-statsand returnsBuybackWeeklyStatsResponse. - Added the matching
@gmx-io/sdk/v2type exports for staking-power and buyback responses.
1.5.0-alpha-8 — March 11, 2026
This release expands the GmxApiSdk read surface to cover more GMX HTTP endpoints and exports the matching typed response helpers.
- Added
fetchMarkets(),fetchMarketsTickers(params),fetchTokens(),fetchPairs(),fetchRates(params),fetchApy(params),fetchPerformanceAnnualized(params), andfetchPerformanceSnapshots(params)toGmxApiSdkin@gmx-io/sdk/v2. - Added the matching
@gmx-io/sdk/v2type exports for APY, market tickers, pairs, rates, and performance responses.
1.5.0-alpha-7 — March 9, 2026
This release improves TypeScript type resolution for projects that consume the SDK in CommonJS mode.
- Added
typesVersionsmappings to@gmx-io/sdkso TypeScript resolves subpath types correctly whenmoduleResolutionis set to"node"or"node10"intsconfig.json. Projects using"bundler"or"node16"module resolution already resolve types through theexportsfield and are unaffected. - Covers the root client entrypoints (
@gmx-io/sdk,@gmx-io/sdk/v1,@gmx-io/sdk/v2) as well as config, ABI, utility, prebuilt, and type-only subpaths. - No runtime SDK API methods changed in this release. The update is packaging and type-resolution focused.
1.5.0-alpha-6 — March 9, 2026
This release adds OHLCV reads to GmxApiSdk and renames address-filtered API SDK params to match the underlying GMX API.
- Added
fetchOhlcv(params)toGmxApiSdkin@gmx-io/sdk/v2. This method wrapsfetchApiOhlcvand returnsOhlcvCandle[]from/prices/ohlcv. - Renamed
fetchPositionsInfo(params)andfetchOrders(params)params fromaccounttoaddress. The underlyingfetchApiPositionsInfoandfetchApiOrdershelpers now useaddressas well. - Added
OhlcvCandleandOhlcvParamsexports in@gmx-io/sdk/v2, plus the@gmx-io/sdk/types/pricessubpath export for price candle types.
1.5.0-alpha-5 — February 28, 2026
This release fixes a potential negative pool amount edge case in position price impact calculations.
getPriceImpactForPositionin@gmx-io/sdk/utils/feesnow accepts an optionalfallbackToZerooption. When enabled, negative pool amounts are clamped to zero instead of producing invalid results.getContractPositionDynamicFeesin@gmx-io/sdk/utils/positionsusesfallbackToZero: truewhen callinggetPriceImpactForPositioninternally, preventing errors from negative pool states.
1.5.0-alpha-4 — February 13, 2026
This release adds five new synthetic markets on Arbitrum and expands the GmxApiSdk class with positions and orders support.
- Added
fetchPositionsInfo(params)andfetchOrders(params)methods toGmxApiSdkin@gmx-io/sdk/v2. These methods wrapfetchApiPositionsInfoandfetchApiOrdersrespectively. - Added five new Arbitrum markets: XAUT/USD [WBTC-USDC], LIT/USD [WETH-USDC], IP/USD [WBTC-USDC], CC/USD [WBTC-USDC], and MET/USD [WBTC-USDC]. All five index tokens are synthetic.
- Added corresponding token configurations for XAUT, LIT (Lighter), IP (Story), CC (Canton), and MET (Meteora) on Arbitrum.
1.5.0-alpha-3 — February 13, 2026
This release introduces the GmxApiSdk client and adds GMX API support for positions, orders, and fee utilities.
- Added
GmxApiSdkclass exported from@gmx-io/sdk/v2. Instantiate it with achainIdto call GMX API endpoints directly. ProvidesfetchMarketsInfo()andfetchTokensData()methods. Supported on Arbitrum, Avalanche, and Arbitrum Sepolia; throws at construction time for unsupported chains. - Added
getPositionInfoutility to@gmx-io/sdk/utils/positions. Computes a comprehensive position summary (entry price, PnL, leverage, liquidation price, net value, fees) from a raw position and market data. - Added
getContractPositionDynamicFeesto@gmx-io/sdk/utils/positions. Calculates dynamic fees (borrowing, funding, closing) for a position given the current market fee state. - Added
fetchApiPositionsInfoto@gmx-io/sdk/utils/positions. Fetches position data from the GMX API instead of on-chain multicalls (available on Arbitrum, Avalanche, and Arbitrum Sepolia). - Added
fetchApiOrdersto@gmx-io/sdk/utils/orders. Fetches order data from the GMX API. - Added
isApiSupported(chainId)to@gmx-io/sdk/configs/api. Returnstruefor chains that have a GMX API endpoint (Arbitrum, Avalanche, and Arbitrum Sepolia). - Added
FLOAT_PRECISION_SQRT_DECIMALS(15) andFLOAT_PRECISION_SQRT(10n ** 15n) constants to@gmx-io/sdk/utils/numbers.
1.5.0-alpha-2 — February 11, 2026
This release adds fee utilities and Solidity error decoding helpers.
- Added
getMaxNegativeImpactBpsto@gmx-io/sdk/utils/fees. Converts a market'smaxPositionImpactFactorNegativeto basis points. - Added
tryDecodeCustomError,decodeErrorFromViemError, andextractErrorDataFromViemErrorto@gmx-io/sdk/utils/errors. These functions decode custom Solidity errors from viem error objects using the GMXCustomErrorsABI.
1.3.1 — September 15, 2025
This release fixes order payload forwarding.
- Fixed
dataListnot being forwarded to the on-chain order payload increateIncreaseOrder,createDecreaseOrder, andcreateSwapOrder. ThedataListparameter (optionalstring[]) now defaults to[]when omitted.
1.3.0 — September 15, 2025
This release adds GMX v2.2 contract support and position impact fields.
- Added support for GMX v2.2 contracts. Updated
SyntheticsReaderandClaimHandlerABIs; addedSmartAccountABI. - Added
pendingImpactUsdandclosePriceImpactDeltaUsdfields toPositionInfo. - Added
nextPendingImpactDeltaUsdandpotentialPriceImpactDiffUsdfields toNextPositionValues. - Fixed position impact capping logic in
getNextPositionValuesForIncreaseTradeto usenextSizeUsdinstead ofsizeDeltaUsd.
1.2.1 — August 25, 2025
This release fixes Botanix client initialization.
- Fixed Botanix viem client initialization. Added Botanix to
BATCH_CONFIGS(it was missing, which caused the defaultPublicClientto fail on Botanix). Changed batch config access to use optional chaining (?.) so an unsupported chain ID doesn't throw at client construction time.
1.2.0 — July 17, 2025
This release adds three new markets across Arbitrum and Avalanche.
- Added market and token configurations for three new markets: PUMP/USD [WBTC-USDC] and ARB/USD [ARB-ARB] on Arbitrum, and PUMP/USD [WAVAX-USDC] on Avalanche. PUMP is a synthetic token.
1.1.0 — June 3, 2025
This release adds four new synthetic markets on Arbitrum.
- Added market and token configurations for four new markets on Arbitrum: CRV/USD [WETH-USDC], XMR/USD [WBTC-USDC], MOODENG/USD [WBTC-USDC], and PI/USD [WBTC-USDC]. All four index tokens are synthetic.
1.0.5 — May 26, 2025
This release fixes uiFeeReceiver propagation in order creation.
- Fixed
uiFeeReceivernot being read fromsdk.config.settings.uiFeeReceiverAccountincreateIncreaseOrder,createDecreaseOrder, andcreateSwapOrder. Previously all three functions passedzeroAddressunconditionally.
1.0.3 — May 23, 2025
This release adds the isTrigger parameter and fixes order type forwarding in createDecreaseOrder.
- Added
isTriggerparameter toorders.createDecreaseOrder. Whentrue, the order type is taken fromdecreaseAmounts.triggerOrderType; whenfalseor omitted, the order type defaults toMarket Decrease. - Fixed
orderTypenot being forwarded correctly inorders.createDecreaseOrder.
1.0.0 — April 30, 2025
This is the initial stable release. It removes the deprecated subgraphUrl config key and adds dual ESM/CJS module support.
- Removed
subgraphUrlfromGmxSdkConfig. UsesubsquidUrlinstead. - Added support for both ESM and CJS module formats. The package ships two builds:
build/esm/andbuild/cjs/. - Changed the default module format from ESM to CJS. The
mainentry point resolves tobuild/cjs/src/index.js.