Constructs a new MangoPerpMarketTask.
Optional
properties: IMangoPerpMarketTaskProperties to set
Mainnet address for a mango perpetual market. A full list can be found here: https://github.com/blockworks-foundation/mango-client-v3/blob/main/src/ids.json
Static
createCreates a new MangoPerpMarketTask instance using the specified properties.
Optional
properties: IMangoPerpMarketTaskProperties to set
MangoPerpMarketTask instance
Static
decodeDecodes a MangoPerpMarketTask message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length: numberMessage length if known beforehand
MangoPerpMarketTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes a MangoPerpMarketTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
MangoPerpMarketTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
encodeEncodes the specified MangoPerpMarketTask message. Does not implicitly verify messages.
MangoPerpMarketTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
encodeEncodes the specified MangoPerpMarketTask message, length delimited. Does not implicitly verify messages.
MangoPerpMarketTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
fromCreates a MangoPerpMarketTask message from a plain object. Also converts values to their respective internal types.
Plain object
MangoPerpMarketTask
Static
getStatic
toCreates a plain object from a MangoPerpMarketTask message. Also converts values to other types if specified.
MangoPerpMarketTask
Optional
options: IConversionOptionsConversion options
Plain object
Static
verify
Fetch the current price for a Mango perpetual market