Constructs a new MangoPerpMarketTask.
Optionalproperties: 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
StaticcreateCreates a new MangoPerpMarketTask instance using the specified properties.
Optionalproperties: IMangoPerpMarketTaskProperties to set
MangoPerpMarketTask instance
StaticdecodeDecodes a MangoPerpMarketTask message from the specified reader or buffer.
Reader or buffer to decode from
Optionallength: numberMessage length if known beforehand
MangoPerpMarketTask
StaticdecodeDecodes a MangoPerpMarketTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
MangoPerpMarketTask
StaticencodeEncodes the specified MangoPerpMarketTask message. Does not implicitly verify messages.
MangoPerpMarketTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticencodeEncodes the specified MangoPerpMarketTask message, length delimited. Does not implicitly verify messages.
MangoPerpMarketTask message or plain object to encode
Optionalwriter: WriterWriter to encode to
Writer
StaticfromCreates a MangoPerpMarketTask message from a plain object. Also converts values to their respective internal types.
Plain object
MangoPerpMarketTask
StaticgetGets the default type url for MangoPerpMarketTask
OptionaltypeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
StatictoCreates a plain object from a MangoPerpMarketTask message. Also converts values to other types if specified.
MangoPerpMarketTask
Optionaloptions: IConversionOptionsConversion options
Plain object
StaticverifyVerifies 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