# Gains Network ## Docs - [gFARM2 NFTs](https://docs.gains.trade/archived/nfts.md): Historical reference for the deprecated gFARM2 NFTs and their redemption. - [Arbitrum <-> Polygon Bridge](https://docs.gains.trade/bridges/arbitrum-less-than-greater-than-polygon-bridge.md): Bridge your $GNS tokens or NFTs between Arbitrum and Polygon - [Changelog](https://docs.gains.trade/changelog.md): Day-to-day product releases, protocol updates, and operational notes. - [Gains Guardians](https://docs.gains.trade/community/gtrade-guardians.md): Become a Gains Guardian and champion the future of DeFi - [Acknowledge VIP Status](https://docs.gains.trade/developer/api-reference/endpoint/ack-vip-status.md): Acknowledges that the wallet has seen the VIP prompt. - [Get APR Info](https://docs.gains.trade/developer/api-reference/endpoint/apr.md): Returns APR and TVL data for staking, vault, burn, and collateral rewards. - [Associate Wallet](https://docs.gains.trade/developer/api-reference/endpoint/associate-wallet.md): Creates a wallet association after signature verification. - [Get Batch Wallet Trading History](https://docs.gains.trade/developer/api-reference/endpoint/batch-personal-trading-history.md): Returns paginated trading history for multiple wallets. - [Get Batch Wallet Trading Stats](https://docs.gains.trade/developer/api-reference/endpoint/batch-personal-trading-stats.md): Returns trading statistics for multiple wallet addresses. - [Get Bridge Flow By Hash](https://docs.gains.trade/developer/api-reference/endpoint/bridge-flow-by-hash.md): Returns one bridge flow by source transaction hash. - [Get Bridge Flows By Address](https://docs.gains.trade/developer/api-reference/endpoint/bridge-flows-by-address.md): Returns bridge flows associated with a wallet address. - [Check Campaign Eligibility](https://docs.gains.trade/developer/api-reference/endpoint/campaign-eligibility.md): Checks broad EVM address eligibility across active campaigns. - [Check Campaign Eligibility By ID](https://docs.gains.trade/developer/api-reference/endpoint/campaign-eligibility-by-id.md): Checks EVM address eligibility for a specific campaign. - [Get Circle Messages](https://docs.gains.trade/developer/api-reference/endpoint/circle-messages.md): Returns Circle CCTP messages for a transaction. - [Get Contest Details](https://docs.gains.trade/developer/api-reference/endpoint/contest-details.md): Returns details, rewards, and aggregate stats for a contest. - [Get Contest Leaderboard](https://docs.gains.trade/developer/api-reference/endpoint/contest-leaderboard.md): Returns a contest leaderboard sorted by PnL or volume. - [Get Contest Trader Stats](https://docs.gains.trade/developer/api-reference/endpoint/contest-trader-stats.md): Returns stats, rankings, and estimated rewards for a trader in a contest. - [List Contests](https://docs.gains.trade/developer/api-reference/endpoint/contests.md): Lists trading contests. - [Get Open Trades](https://docs.gains.trade/developer/api-reference/endpoint/core-open-trades.md): Returns all known open trades. - [Get Open Trades By Address](https://docs.gains.trade/developer/api-reference/endpoint/core-open-trades-by-address.md): Returns known open trades for one address. - [Get Open Trades Info](https://docs.gains.trade/developer/api-reference/endpoint/core-open-trades-info.md): Returns metadata and indexes for known open trades. - [Get Pending Events](https://docs.gains.trade/developer/api-reference/endpoint/core-pending-events.md): Returns pending backend event queue data. - [Get Trading Variable Keys](https://docs.gains.trade/developer/api-reference/endpoint/core-trading-variable-keys.md): Returns available trading variable keys. - [Get Trading Variables](https://docs.gains.trade/developer/api-reference/endpoint/core-trading-variables.md): Returns core trading variables needed by integrators. - [Get All Trading Variables](https://docs.gains.trade/developer/api-reference/endpoint/core-trading-variables-all.md): Returns all cached trading variables. - [Get Trading Variables By Keys](https://docs.gains.trade/developer/api-reference/endpoint/core-trading-variables-by-keys.md): Returns selected trading variable keys. - [Get User Trading Variables](https://docs.gains.trade/developer/api-reference/endpoint/core-user-trading-variables.md): Returns user-specific trading variables, pending market orders, fee tiers, and price impact data. - [Create Bridge Flow](https://docs.gains.trade/developer/api-reference/endpoint/create-bridge-flow.md): Creates a cross-chain bridge flow record. - [Delete Bridge Flow](https://docs.gains.trade/developer/api-reference/endpoint/delete-bridge-flow.md): Deletes a bridge flow record. - [Dismiss Notification](https://docs.gains.trade/developer/api-reference/endpoint/dismiss-notification.md): Marks one notification as acknowledged. - [Finalize Bridge Flow](https://docs.gains.trade/developer/api-reference/endpoint/finalize-bridge-flow.md): Marks a bridge flow as finalized. - [Health Check](https://docs.gains.trade/developer/api-reference/endpoint/health.md): Check backend service health. - [Get Holding Rates](https://docs.gains.trade/developer/api-reference/endpoint/holding-rates.md): Returns historical borrowing and funding rates for a collateral and pair. - [Get Latest Dapp Version](https://docs.gains.trade/developer/api-reference/endpoint/latest-dapp.md): Returns latest frontend version metadata for a dapp mode. - [Get Latest Dapp Version By Mode](https://docs.gains.trade/developer/api-reference/endpoint/latest-dapp-by-mode.md): Returns latest frontend version metadata for a mode path parameter. - [Get Trader Leaderboard](https://docs.gains.trade/developer/api-reference/endpoint/leaderboard.md): Returns trader leaderboard for a period or all supported periods. - [Get Legacy Contest](https://docs.gains.trade/developer/api-reference/endpoint/legacy-contest.md): Returns legacy contest metadata. - [Update Legacy Contest Cache](https://docs.gains.trade/developer/api-reference/endpoint/legacy-contest-cache-update.md): Updates legacy contest cache data. - [Get Legacy Final Open PnL](https://docs.gains.trade/developer/api-reference/endpoint/legacy-contest-final-open-pnl.md): Returns final open PnL snapshots for legacy contests. - [Get Legacy Contest Leaderboard](https://docs.gains.trade/developer/api-reference/endpoint/legacy-contest-leaderboard.md): Returns legacy contest leaderboard cache. - [Get Legacy Contest PnL](https://docs.gains.trade/developer/api-reference/endpoint/legacy-contest-pnl.md): Returns legacy contest PnL history cache. - [Get Legacy Contest PnL Percent](https://docs.gains.trade/developer/api-reference/endpoint/legacy-contest-pnl-percent.md): Returns legacy contest percentage PnL history cache. - [Get Legacy Contest Results](https://docs.gains.trade/developer/api-reference/endpoint/legacy-contest-results.md): Returns legacy contest results data. - [Get Legacy Contest Rewards](https://docs.gains.trade/developer/api-reference/endpoint/legacy-contest-rewards.md): Returns legacy contest rewards data. - [Get Notifications](https://docs.gains.trade/developer/api-reference/endpoint/notifications.md): Returns active notifications for a wallet. - [Get Pending Bridge Flows](https://docs.gains.trade/developer/api-reference/endpoint/pending-bridge-flows.md): Returns non-finalized bridge flows associated with a wallet address. - [Get Wallet Trading History](https://docs.gains.trade/developer/api-reference/endpoint/personal-trading-history.md): Returns paginated trading history for one wallet. - [Get Wallet Trading Stats](https://docs.gains.trade/developer/api-reference/endpoint/personal-trading-stats.md): Returns all-time and 30-day trading statistics for a wallet. - [Resolve Referral Address](https://docs.gains.trade/developer/api-reference/endpoint/referral-address-link.md): Resolves a referral address to a slug. - [Resolve Referral Link](https://docs.gains.trade/developer/api-reference/endpoint/referral-link-address.md): Resolves a referral slug to an address. - [Get All Rewards By Address](https://docs.gains.trade/developer/api-reference/endpoint/rewards-all-by-address.md): Returns all rewards for one address. - [Get Rewards By Address](https://docs.gains.trade/developer/api-reference/endpoint/rewards-by-address.md): Returns rewards for one address. - [Get Rewards Root](https://docs.gains.trade/developer/api-reference/endpoint/rewards-root.md): Returns the rewards Merkle root for a config and epoch. - [Get All Rewards Roots](https://docs.gains.trade/developer/api-reference/endpoint/rewards-root-all.md): Returns all rewards Merkle roots matching a config and epoch. - [Check Solana Campaign Eligibility](https://docs.gains.trade/developer/api-reference/endpoint/solana-campaign-eligibility.md): Checks broad Solana address eligibility across active campaigns. - [Check Solana Campaign Eligibility By ID](https://docs.gains.trade/developer/api-reference/endpoint/solana-campaign-eligibility-by-id.md): Checks Solana address eligibility for a specific campaign. - [Get Solana Token Balance](https://docs.gains.trade/developer/api-reference/endpoint/solana-usdc-balance.md): Returns a Solana SPL token balance and token account using backend RPC fallbacks. - [Get Chain Stats](https://docs.gains.trade/developer/api-reference/endpoint/stats.md): Returns protocol and trading statistics for a chain. - [Get GNS Total Supply](https://docs.gains.trade/developer/api-reference/endpoint/total-supply.md): Returns the latest GNS total supply from cached stats. - [Get Trading History Window](https://docs.gains.trade/developer/api-reference/endpoint/trading-history.md): Returns all trades for a recent time window. - [Get Trading History Stats](https://docs.gains.trade/developer/api-reference/endpoint/trading-history-stats.md): Returns precomputed trading stats for a recent time window. - [Create Transak Widget URL](https://docs.gains.trade/developer/api-reference/endpoint/transak-widget-url.md): Creates a Transak on-ramp widget URL. - [Update Bridge Flow](https://docs.gains.trade/developer/api-reference/endpoint/update-bridge-flow.md): Updates fields on a bridge flow record. - [Get VIP Status](https://docs.gains.trade/developer/api-reference/endpoint/vip-status.md): Returns VIP status for a wallet. - [Get Wallet Associations](https://docs.gains.trade/developer/api-reference/endpoint/wallet-associations.md): Returns wallets associated with an address. - [Backend API Reference](https://docs.gains.trade/developer/api-reference/introduction.md): REST reference for Gains Network backend services. - [Integrators](https://docs.gains.trade/developer/integrators.md): Overview for dApp and contract integrations - [Backend](https://docs.gains.trade/developer/integrators/backend.md): Details how to fetch trade data from off-chain services - [Contests](https://docs.gains.trade/developer/integrators/contests.md): API endpoints for building trading contests and leaderboards on Gains data. - [Delegated Trading](https://docs.gains.trade/developer/integrators/delegated-trading.md): Use an agent wallet or backend signer to submit trades for a trader - [Guides](https://docs.gains.trade/developer/integrators/guides.md): Examples of common use cases - [Backend Endpoint Refactor](https://docs.gains.trade/developer/integrators/guides/backend-endpoint-refactor.md): Backend endpoint refactor (Oct 2025): leaner trading-variables and the new open-trades endpoints. - [Building the virtual order book](https://docs.gains.trade/developer/integrators/guides/building-the-virtual-order-book.md): How to derive the gTrade virtual order book from public trading variables, live prices, and SDK price-impact helpers. - [Calculating borrowing fees](https://docs.gains.trade/developer/integrators/guides/calculating-borrowing-fees.md): Learn how to calculate trader's borrowing fees - [Calculating liquidation price](https://docs.gains.trade/developer/integrators/guides/calculating-liquidation-price.md): Learn how to calculate any trade's liquidation price - [History Endpoints Migration](https://docs.gains.trade/developer/integrators/guides/history-endpoints-migration.md): Migration to the new trading history endpoints with cursor-based pagination (Dec 2025). - [Mark + Index Introduction](https://docs.gains.trade/developer/integrators/guides/mark-+-index-introduction.md): How the v4 pricing API separates mark prices from index prices, and how to migrate from v3. - [Support Endpoints Migration](https://docs.gains.trade/developer/integrators/guides/support-endpoints-migration.md): Support endpoint migration Dec 2025 -> Jan 2026 - [v10 migration](https://docs.gains.trade/developer/integrators/guides/v10-migration.md): Integrator migration guide for v10: funding fees, borrowing v2, partial closes, and more. - [v10.2 migration](https://docs.gains.trade/developer/integrators/guides/v10.2-migration.md): What changed for integrators in v10.2: the 30-band depth system for price impact. - [Live prices and OHLC snapshots](https://docs.gains.trade/developer/integrators/price-feed.md): How to stream live prices and fetch current OHLC snapshots. This endpoint does not provide historical OHLCV candles. - [Trading Contracts](https://docs.gains.trade/developer/integrators/trading-contracts.md): How to interact with Gains trading contracts. - [Backend Types](https://docs.gains.trade/developer/technical-reference/backend/backend-types.md): Gains' backend return types - [v10 Update](https://docs.gains.trade/developer/technical-reference/contracts/changelogs/v10-update.md) - [v10.1 Update](https://docs.gains.trade/developer/technical-reference/contracts/changelogs/v10.1-update.md) - [v10.2 Update](https://docs.gains.trade/developer/technical-reference/contracts/changelogs/v10.2-update.md) - [v9 Update](https://docs.gains.trade/developer/technical-reference/contracts/changelogs/v9-update.md) - [v9.1 Update](https://docs.gains.trade/developer/technical-reference/contracts/changelogs/v9.1-update.md) - [v9.1.1 Update](https://docs.gains.trade/developer/technical-reference/contracts/changelogs/v9.1.1-update.md) - [v9.2.1 Update](https://docs.gains.trade/developer/technical-reference/contracts/changelogs/v9.2.1-update.md) - [GNSAddressStore](https://docs.gains.trade/developer/technical-reference/contracts/core/abstract/gnsaddressstore.md) - [GNSDiamondCut](https://docs.gains.trade/developer/technical-reference/contracts/core/abstract/gnsdiamondcut.md) - [GNSDiamondLoupe](https://docs.gains.trade/developer/technical-reference/contracts/core/abstract/gnsdiamondloupe.md) - [GNSDiamondStorage](https://docs.gains.trade/developer/technical-reference/contracts/core/abstract/gnsdiamondstorage.md) - [GNSBorrowingFees](https://docs.gains.trade/developer/technical-reference/contracts/core/facets/gnsborrowingfees.md) - [GNSFeeTiers](https://docs.gains.trade/developer/technical-reference/contracts/core/facets/gnsfeetiers.md) - [GNSOtc](https://docs.gains.trade/developer/technical-reference/contracts/core/facets/gnsotc.md) - [GNSPairsStorage](https://docs.gains.trade/developer/technical-reference/contracts/core/facets/gnspairsstorage.md) - [GNSPriceAggregator](https://docs.gains.trade/developer/technical-reference/contracts/core/facets/gnspriceaggregator.md) - [GNSPriceImpact](https://docs.gains.trade/developer/technical-reference/contracts/core/facets/gnspriceimpact.md) - [GNSReferrals](https://docs.gains.trade/developer/technical-reference/contracts/core/facets/gnsreferrals.md) - [GNSTradingCallbacks](https://docs.gains.trade/developer/technical-reference/contracts/core/facets/gnstradingcallbacks.md) - [GNSTradingInteractions](https://docs.gains.trade/developer/technical-reference/contracts/core/facets/gnstradinginteractions.md) - [GNSTradingStorage](https://docs.gains.trade/developer/technical-reference/contracts/core/facets/gnstradingstorage.md) - [GNSTriggerRewards](https://docs.gains.trade/developer/technical-reference/contracts/core/facets/gnstriggerrewards.md) - [GNSMultiCollatDiamond](https://docs.gains.trade/developer/technical-reference/contracts/core/gnsmulticollatdiamond.md) - [GNSStaking](https://docs.gains.trade/developer/technical-reference/contracts/core/gnsstaking.md) - [GToken](https://docs.gains.trade/developer/technical-reference/contracts/core/gtoken.md) - [GTokenOpenPnlFeed](https://docs.gains.trade/developer/technical-reference/contracts/core/gtokenopenpnlfeed.md) - [IArbSys](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/iarbsys.md) - [IChainlinkFeed](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/ichainlinkfeed.md) - [IChainlinkOracle](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/ichainlinkoracle.md) - [IERC20](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/ierc20.md) - [IERC721](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/ierc721.md) - [IERC721Design](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/ierc721design.md) - [IGeneralErrors](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/igeneralerrors.md) - [IGNSAddressStore](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/ignsaddressstore.md) - [IGNSDiamond](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/ignsdiamond.md) - [IGNSDiamondCut](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/ignsdiamondcut.md) - [IGNSDiamondLoupe](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/ignsdiamondloupe.md) - [IGNSMultiCollatDiamond](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/ignsmulticollatdiamond.md) - [IGNSStaking](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/ignsstaking.md) - [IGToken](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/igtoken.md) - [IGTokenLockedDepositNft](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/igtokenlockeddepositnft.md) - [IGTokenLockedDepositNftDesign](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/igtokenlockeddepositnftdesign.md) - [IGTokenOpenPnlFeed](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/igtokenopenpnlfeed.md) - [ILiquidityPool](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/iliquiditypool.md) - [IOwnable](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/iownable.md) - [IRateProvider](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/irateprovider.md) - [IBorrowingFeesUtils](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/libraries/iborrowingfeesutils.md) - [IFeeTiersUtils](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/libraries/ifeetiersutils.md) - [IOtcUtils](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/libraries/iotcutils.md) - [IPairsStorageUtils](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/libraries/ipairsstorageutils.md) - [IPriceAggregatorUtils](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/libraries/ipriceaggregatorutils.md) - [IPriceImpactUtils](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/libraries/ipriceimpactutils.md) - [IReferralsUtils](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/libraries/ireferralsutils.md) - [ITradingCallbacksUtils](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/libraries/itradingcallbacksutils.md) - [ITradingCommonUtils](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/libraries/itradingcommonutils.md) - [ITradingInteractionsUtils](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/libraries/itradinginteractionsutils.md) - [ITradingStorageUtils](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/libraries/itradingstorageutils.md) - [ITriggerRewardsUtils](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/libraries/itriggerrewardsutils.md) - [IUpdateLeverageUtils](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/libraries/iupdateleverageutils.md) - [IUpdatePositionSizeUtils](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/libraries/iupdatepositionsizeutils.md) - [IAddressStore](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/types/iaddressstore.md) - [IBorrowingFees](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/types/iborrowingfees.md) - [IDiamondStorage](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/types/idiamondstorage.md) - [IFeeTiers](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/types/ifeetiers.md) - [IOtc](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/types/iotc.md) - [IPairsStorage](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/types/ipairsstorage.md) - [IPriceAggregator](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/types/ipriceaggregator.md) - [IPriceImpact](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/types/ipriceimpact.md) - [IReferrals](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/types/ireferrals.md) - [ITradingCallbacks](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/types/itradingcallbacks.md) - [ITradingInteractions](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/types/itradinginteractions.md) - [ITradingStorage](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/types/itradingstorage.md) - [ITriggerRewards](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/types/itriggerrewards.md) - [ITypes](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/types/itypes.md) - [IUpdateLeverage](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/types/iupdateleverage.md) - [IUpdatePositionSize](https://docs.gains.trade/developer/technical-reference/contracts/interfaces/types/iupdatepositionsize.md) - [AddressStoreUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/addressstoreutils.md) - [ArrayGetters](https://docs.gains.trade/developer/technical-reference/contracts/libraries/arraygetters.md) - [BorrowingFeesUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/borrowingfeesutils.md) - [ChainlinkClientUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/chainlinkclientutils.md) - [ChainUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/chainutils.md) - [CollateralUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/collateralutils.md) - [ConstantsUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/constantsutils.md) - [DiamondUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/diamondutils.md) - [FeeTiersUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/feetiersutils.md) - [LiquidityPoolUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/liquiditypoolutils.md) - [OtcUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/otcutils.md) - [PackingUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/packingutils.md) - [PairsStorageUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/pairsstorageutils.md) - [PriceAggregatorUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/priceaggregatorutils.md) - [PriceImpactUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/priceimpactutils.md) - [ReferralsUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/referralsutils.md) - [StorageUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/storageutils.md) - [TradingCallbacksUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/tradingcallbacksutils.md) - [TradingCommonUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/tradingcommonutils.md) - [TradingInteractionsUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/tradinginteractionsutils.md) - [TradingStorageUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/tradingstorageutils.md) - [TriggerRewardsUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/triggerrewardsutils.md) - [UpdateLeverageLifecycles](https://docs.gains.trade/developer/technical-reference/contracts/libraries/updateleverage/updateleveragelifecycles.md) - [DecreasePositionSizeUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/updatepositionsize/decreasepositionsizeutils.md) - [IncreasePositionSizeUtils](https://docs.gains.trade/developer/technical-reference/contracts/libraries/updatepositionsize/increasepositionsizeutils.md) - [UpdatePositionSizeLifecycles](https://docs.gains.trade/developer/technical-reference/contracts/libraries/updatepositionsize/updatepositionsizelifecycles.md) - [EpochBasedTokenClaim](https://docs.gains.trade/developer/technical-reference/contracts/misc/epochbasedtokenclaim.md) - [GNSCompensationHandler](https://docs.gains.trade/developer/technical-reference/contracts/misc/gnscompensationhandler.md) - [GTokenLockedDepositNftDesign](https://docs.gains.trade/developer/technical-reference/contracts/misc/gtokenlockeddepositnftdesign.md) - [GTokenRateProvider](https://docs.gains.trade/developer/technical-reference/contracts/misc/gtokenrateprovider.md) - [ManagerTimelock](https://docs.gains.trade/developer/technical-reference/contracts/misc/managertimelock.md) - [OwnerTimelock](https://docs.gains.trade/developer/technical-reference/contracts/misc/ownertimelock.md) - [VotingDelegator](https://docs.gains.trade/developer/technical-reference/contracts/misc/votingdelegator.md) - [GainsNetworkToken](https://docs.gains.trade/developer/technical-reference/contracts/tokens/gainsnetworktoken.md) - [GTokenLockedDepositNft](https://docs.gains.trade/developer/technical-reference/contracts/tokens/gtokenlockeddepositnft.md) - [SDK](https://docs.gains.trade/developer/technical-reference/sdk.md): Gains' SDK technical reference - [Client Types](https://docs.gains.trade/developer/technical-reference/sdk/client-types.md): Typescript types used within SDK - [Commodities](https://docs.gains.trade/gtrade-leveraged-trading/asset-classes/commodities.md): Leverage trading on commodity prices. - [Cryptocurrencies](https://docs.gains.trade/gtrade-leveraged-trading/asset-classes/cryptocurrencies.md): Leverage trading on crypto pair prices. - [Forex](https://docs.gains.trade/gtrade-leveraged-trading/asset-classes/forex.md): Leverage trading on forex pair prices. - [Indices](https://docs.gains.trade/gtrade-leveraged-trading/asset-classes/indices.md): Leverage trading on index prices. - [Stocks](https://docs.gains.trade/gtrade-leveraged-trading/asset-classes/stocks.md): Leverage trading on stock prices. - [Fees & Spread](https://docs.gains.trade/gtrade-leveraged-trading/fees-and-spread.md): Full breakdown of Gains fees, spread, price impact, borrowing fees, and liquidation thresholds. - [Gains Solana](https://docs.gains.trade/gtrade-leveraged-trading/gtrade-solana.md): Trade supported pairs directly from a Solana wallet. - [How to use Practice Mode](https://docs.gains.trade/gtrade-leveraged-trading/how-to-use-practice-mode.md): Try Gains risk-free with practice mode on testnet funds. - [One-Click Trading (1CT)](https://docs.gains.trade/gtrade-leveraged-trading/one-click-trading-1ct.md): Reduce repeated wallet confirmations with one-click trading. - [Opening / Closing trades](https://docs.gains.trade/gtrade-leveraged-trading/opening-closing-trades.md): Step-by-step guide to opening and closing trades on the Gains interface. - [Trading interface overview](https://docs.gains.trade/gtrade-leveraged-trading/overview.md): Learn how Gains powers decentralized leveraged trading across crypto, forex, commodities, stocks, and indices. - [Pair List](https://docs.gains.trade/gtrade-leveraged-trading/pair-list.md): All trading pairs available on Gains, with their pairIndex, asset class, and max leverage. - [Setting up to trade](https://docs.gains.trade/gtrade-leveraged-trading/setting-up-to-trade.md): Set up your wallet, fund it, and connect to supported Gains networks. - [Arbitrum Network Setup](https://docs.gains.trade/gtrade-leveraged-trading/setting-up-to-trade/arbitrum-network-setup.md): Add Arbitrum to your wallet and fund it to trade on Gains. - [Polygon Network Setup](https://docs.gains.trade/gtrade-leveraged-trading/setting-up-to-trade/polygon-network-setup.md): Add Polygon to your wallet and fund it to trade on Gains. - [Trade Collaterals](https://docs.gains.trade/gtrade-leveraged-trading/trade-collaterals.md): Gains offers multiple collateral options - [Spotlight: WETH](https://docs.gains.trade/gtrade-leveraged-trading/trade-collaterals/spotlight-weth.md): Execution differences between Gains and a traditional centralized exchange. - [Video tutorials](https://docs.gains.trade/gtrade-leveraged-trading/video-tutorials.md): A list of YouTube videos to learn more about Gains. - [Chain congestion](https://docs.gains.trade/help/chain-congestion.md): What to do when the network is congested: gas settings, RPC switching, and monitoring. - [FAQ](https://docs.gains.trade/help/faq.md): Frequently asked questions on the protocol. - [Glossary](https://docs.gains.trade/help/glossary.md): Definitions of the key terms used across the Gains documentation. - [Gains Network](https://docs.gains.trade/index.md): Documentation for trading, liquidity, protocol mechanics, and developer integrations. - [Active Pools & Incentives](https://docs.gains.trade/liquidity-farming-pools/active-pools-and-incentives.md): This page contains up-to-date information on $GNS and gToken pools & incentives - [GNS Staking](https://docs.gains.trade/liquidity-farming-pools/gns-staking.md): Stake $GNS and review the current staking reward status. - [gToken Vaults](https://docs.gains.trade/liquidity-farming-pools/gtoken-vaults.md): Collateral vaults supporting trading liquidity - [Staker FAQ](https://docs.gains.trade/liquidity-farming-pools/gtoken-vaults/staker-faq.md): Answers to common staking questions - [Staker Functions](https://docs.gains.trade/liquidity-farming-pools/gtoken-vaults/staker-functions.md): https://gains.trade/vault - [Upgrades, updates, and timelocks](https://docs.gains.trade/liquidity-farming-pools/gtoken-vaults/upgrades-updates-and-timelocks.md): Contract security measures - [Gains Credits](https://docs.gains.trade/loyalty-programs/gtrade-credits.md): Earn Gains Credits by trading and redeem them for rewards. - [Prime Trader](https://docs.gains.trade/loyalty-programs/prime-trader.md): The Prime Trader loyalty program: tiers, benefits, and how to qualify. - [Contract Addresses](https://docs.gains.trade/what-is-gains-network/contract-addresses.md): Official Gains Network contract addresses on every supported chain. - [Arbitrum Mainnet](https://docs.gains.trade/what-is-gains-network/contract-addresses/arbitrum-mainnet.md): Gains Network contract addresses on Arbitrum One. - [Base Mainnet](https://docs.gains.trade/what-is-gains-network/contract-addresses/base-mainnet.md): Gains Network contract addresses on Base. - [MegaETH Mainnet](https://docs.gains.trade/what-is-gains-network/contract-addresses/megaeth-mainnet.md): Gains Network contract addresses on MegaETH. - [Polygon Mainnet](https://docs.gains.trade/what-is-gains-network/contract-addresses/polygon-mainnet.md): Gains Network contract addresses on Polygon. - [GNS Token](https://docs.gains.trade/what-is-gains-network/gns-token.md): The $GNS utility token powers the Gains ecosystem. - [Overview](https://docs.gains.trade/what-is-gains-network/summary.md): What Gains Network is and the vision behind the protocol. ## OpenAPI Specs - [openapi](https://docs.gains.trade/developer/api-reference/openapi.yaml)