Market
API
Messages
Market module message types.
- class terra_sdk.core.market.msgs.MsgSwap(trader, offer_coin, ask_denom)[source]
Perform a native on-chain swap from
offer_coin
toask_denom
.- Parameters
trader (AccAddress) – account performing swap
offer_coin (Union[Coin, str, dict]) – coin offered for swap
ask_denom (str) – denom into which to swap
- action = 'swap'
- type_amino = 'market/MsgSwap'
- type_url: str = '/terra.market.v1beta1.MsgSwap'
- class terra_sdk.core.market.msgs.MsgSwapSend(from_address, to_address, offer_coin, ask_denom)[source]
Performs a swap and sends the resultant swapped amount to
to_address
.- Parameters
from_address (AccAddress) – account performing swap
to_address (AccAddress) – account which will received resultant funds from swap
offer_coin (Union[Coin, str, dict]) – coin offered for swap
ask_denom (str) – denom into which to swap
- action = 'swapsend'
- type_amino = 'market/MsgSwapSend'
- type_url: str = '/terra.market.v1beta1.MsgSwapSend'