Reference documentation for the Marketmap module.
Marketmap
module is responsible for managing and storing a configuration that informs the Connect oracle of which markets to fetch data for, and which providers to use to fetch them.
Marketmap
module contains three levels of access to interact with the module.
Authority
is the only account allowed to change the module’s Params. By default, this account is set to the governance address. However, you may edit the configuration of the module to be any address.
Admin
can only remove an address from the market authority list via RemoveMarketAuthorities
.
MarketAuthority
is assigned by the module Authority
. There can be any number of market authorities. The market authorities are able to create and update markets in the Marketmap
. Specifically, only a MarketAuthority
may send the following transactions:
Ticker
(i.e. BTC/USD) and a list of ProviderConfig
s. A Ticker
contains data about a specific currency pair. A ProviderConfig
contains data that informs the Oracle of how to query for the currency pair in the Ticker
.
Name
field refers to one of the providers listed in the Providers document.
Params
define the authenticated addresses that can mutate the state of the Marketmap
.
Marketmap
.
MsgCreateMarket
creates a new Market
.
MsgUpdateMarkets
updates an existing Market
.
MsgUpsertMarkets
will update a Market
if one already exists. If a Market
does not exist, it will create one instead.
MsgParams
updates the Marketmap
parameters.
MsgRemoveMarketAuthorities
removes a market authority from the Params
.
Marketmap
.
Marketmap
query returns the full Marketmap
in state.
Request:
Market
from the Marketmap
.
Request:
Marketmap
was last updated.
Request:
Marketmap
’s Params
.
Request: