Skip to content

Prodigy Market Control REST API - Market Controller

The market/<market> URL provides management of a specific Market hosted on Prodigy.

Permission: Exchange

GET market/<market>

Retrieves the current configuration for the market.

ParameterDescription
marketA URL-encoded Market Code.
ParameterExpectedDescription
withStateOptionalTrue to include the market state from the cache. If omitted, defaults to False.
CodeStatusDescription
200SuccessContent is a single MarketInfo object.
404FailureThe Market does not exist.
422FailureInvalid data was provided.
Content is a JSON array of one or more error codes describing the problem.

POST market/<market>

Creates a new Market.

ParameterDescription
marketA URL-encoded Market Code.

A single MarketCreateBody object.

CodeStatusDescription
201SuccessOperation completed successfully. Location is the newly created market.
400FailureInvalid or incomplete request.
409FailureThe Market already exists.
422FailureInvalid data was provided.
Content is a JSON array of one or more error codes describing the problem.

PUT market/<market>

Updates the configuration for this market.

ParameterDescription
marketA URL-encoded Market Code.

A single MarketBody object.

CodeStatusDescription
201SuccessOperation completed successfully. Location is the newly updated market.
400FailureInvalid or incomplete request.
409FailureThe Market already exists.
422FailureInvalid data was provided.
Content is a JSON array of one or more error codes describing the problem.

DELETE market/<market>

Deletes an existing market from Prodigy. Removes all trace of the market, including historical data from the database.

ParameterDescription
marketA URL-encoded Market Code.
CodeStatusDescription
200SuccessContent is a single string communicating the result of the operation (typically: Removed).
404FailureThe Market does not exist.
422FailureInvalid data was provided.
Content is a JSON array of one or more error codes describing the problem.