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
Converts this MangoPerpMarketTask to JSON.
JSON object
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
Static
decodeDecodes a MangoPerpMarketTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
MangoPerpMarketTask
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
getGets the default type url for MangoPerpMarketTask
Optional
typeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
Static
toCreates a plain object from a MangoPerpMarketTask message. Also converts values to other types if specified.
MangoPerpMarketTask
Optional
options: IConversionOptionsConversion options
Plain object
Static
verifyVerifies a MangoPerpMarketTask message.
Plain object to verify
null
if valid, otherwise the reason why it is not
Fetch the current price for a Mango perpetual market