Skip to main content

HTTP API reference › GalaSwap DEX › market

GalaSwap DEX — market

7 operations in this group.

GET /market/token-series​

MarketController_tokenSeries

Normalized USD OHLCV + current price for a token at a timeframe

Normalized USD OHLCV + current price for a token at a timeframe

Parameters​

NameInRequiredTypeDescription
timeframequeryrequiredstring enum: 1D, 1W, 1M, 1Y, ALLChart timeframe
tokenqueryrequiredToken symbol or $-composite tokenClassKey

Responses​

200 —​

Content type: application/json

Schema: MarketTokenSeriesResponseDto

FieldTypeRequiredDescription
ohlcvarray<MarketOhlcvPointResponseDto>yes
currentPricenumber nullableyes
change24hnumber nullableyes
volume24hnumber nullableyes
sourcestring enum: inhouse, coingecko, chainmeter, noneyes

400 —​

Content type: application/json

Schema: MarketErrorResponseDto

FieldTypeRequiredDescription
statusbooleanyes
messagestringyes

default — An error response using the shared backend error envelope.​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
statusintegeryes
errorbooleanyes
messagestringyes
errorKeystringno

Example response​

[]

GET /market/price​

MarketController_price

Normalized { price, change24h } per asset id, keyed by registry symbol and also by each requested id that is not the symbol

Normalized { price, change24h } per asset id, keyed by registry symbol and also by each requested id that is not the symbol

Parameters​

NameInRequiredTypeDescription
assetIdsqueryrequiredComma-separated asset ids

Responses​

200 —​

Content type: application/json

Schema: object

FieldTypeRequiredDescription
additionalProperties.pricenumber nullableyes
additionalProperties.change24hnumber nullableyes
additionalProperties.listedbooleanyes

400 —​

Content type: application/json

Schema: MarketErrorResponseDto

FieldTypeRequiredDescription
statusbooleanyes
messagestringyes

default — An error response using the shared backend error envelope.​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
statusintegeryes
errorbooleanyes
messagestringyes
errorKeystringno

Example response​

[]

GET /market/price-series​

MarketController_priceSeries

Dense USD price line for a token (pair-ratio denominator)

Dense USD price line for a token (pair-ratio denominator)

Parameters​

NameInRequiredTypeDescription
timeframequeryrequiredstring enum: 1D, 1W, 1M, 1Y, ALLChart timeframe
tokenqueryrequiredToken symbol or $-composite tokenClassKey

Responses​

200 —​

Content type: application/json

Schema: MarketPriceSeriesResponseDto

FieldTypeRequiredDescription
pricesarray<MarketPriceSeriesPointResponseDto>yes
currentPricenumber nullableyes
change24hnumber nullableyes

400 —​

Content type: application/json

Schema: MarketErrorResponseDto

FieldTypeRequiredDescription
statusbooleanyes
messagestringyes

default — An error response using the shared backend error envelope.​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
statusintegeryes
errorbooleanyes
messagestringyes
errorKeystringno

Example response​

[]

GET /market/sparkline​

MarketController_sparkline

7-day mini sparkline (in-house daily close prices)

7-day mini sparkline (in-house daily close prices)

Parameters​

NameInRequiredTypeDescription
tokenqueryrequiredToken symbol or $-composite tokenClassKey

Responses​

200 —​

Content type: application/json

Schema: array<number>

FieldTypeRequiredDescription
items.valuenumberno

400 —​

Content type: application/json

Schema: MarketErrorResponseDto

FieldTypeRequiredDescription
statusbooleanyes
messagestringyes

default — An error response using the shared backend error envelope.​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
statusintegeryes
errorbooleanyes
messagestringyes
errorKeystringno

Example response​

[]

GET /market/images​

MarketController_images

Token logo URLs keyed by symbol (CoinGecko coins/markets)

Token logo URLs keyed by symbol (CoinGecko coins/markets)

Parameters​

NameInRequiredTypeDescription
tokensqueryrequiredComma-separated token symbols

Responses​

200 —​

Content type: application/json

Schema: object

FieldTypeRequiredDescription
additionalProperties.valuestringno

400 —​

Content type: application/json

Schema: MarketErrorResponseDto

FieldTypeRequiredDescription
statusbooleanyes
messagestringyes

default — An error response using the shared backend error envelope.​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
statusintegeryes
errorbooleanyes
messagestringyes
errorKeystringno

Example response​

[]

GET /market/wallet-transactions​

MarketController_walletTransactions

ChainMeter wallet transaction history (raw get_wallet_txs rows)

ChainMeter wallet transaction history (raw get_wallet_txs rows)

Parameters​

NameInRequiredTypeDescription
sizequeryoptionalPage size (max 100)
pagequeryoptionalZero-based page
addressqueryrequiredWallet address, e.g. eth|<hex> or client|<id>

Responses​

200 —​

Content type: application/json

Schema: array<object>

FieldTypeRequiredDescription
items.*free-form objectnoAdditional properties allowed

400 —​

Content type: application/json

Schema: MarketErrorResponseDto

FieldTypeRequiredDescription
statusbooleanyes
messagestringyes

502 —​

Content type: application/json

Schema: MarketErrorResponseDto

FieldTypeRequiredDescription
statusbooleanyes
messagestringyes

default — An error response using the shared backend error envelope.​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
statusintegeryes
errorbooleanyes
messagestringyes
errorKeystringno

Example response​

[]

GET /market/wallet-swaps​

MarketController_walletSwaps

A wallet’s swaps from our own indexed trades (legacy and new contract), newest first, in the get_wallet_txs row shape the My Swaps history parses

A wallet’s swaps from our own indexed trades (legacy and new contract), newest first, in the get_wallet_txs row shape the My Swaps history parses

Parameters​

NameInRequiredTypeDescription
sizequeryoptionalPage size (max 100)
pagequeryoptionalZero-based page
addressqueryrequiredComma-separated wallet addresses to match (at most 3), e.g. client|<id>,eth|<hex>. A registered wallet’s legacy swaps are recorded under its eth| signer and its new-contract swaps under its client| alias, so send both.

Responses​

200 —​

Content type: application/json

Schema: array<MarketWalletSwapResponseDto>

FieldTypeRequiredDescription
items.block_numbernumberyes
items.tx_numberstringyes
items.created_atstring (date-time)yes
items.creatorstringyes
items.senderstringyes
items.recipientstringyes
items.tx_typestring enum: GalaChainDex:Trade, DexV3Contract:Swapyes
items.tx_subtypestring enum: Swapyes
items.quantitynumberyes
items.tx_validation_codestring enum: 0yes
items.tx_validation_enumstring enum: VALIDyes
items.usd_volumenumberyes
items.swap_token_0_amtnumberyes
items.swap_token_1_amtnumberyes
items.swap_token_0_namestring nullableyes
items.swap_token_1_namestring nullableyes
items.swap_token_0_imagestring nullableyes
items.swap_token_1_imagestring nullableyes
items.swap_token_0_asset_idstring nullableyes
items.swap_token_1_asset_idstring nullableyes
items.unique_keystringyes
items.pool_hashstringyes

400 —​

Content type: application/json

Schema: MarketErrorResponseDto

FieldTypeRequiredDescription
statusbooleanyes
messagestringyes

default — An error response using the shared backend error envelope.​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
statusintegeryes
errorbooleanyes
messagestringyes
errorKeystringno

Example response​

[]

Previous group: token-class · Next group: marketplace