Max LP Mintable

Gets the max amount of base LP mintable possible for a given product and a given subaccount.

Rate limits

  • 48 requests/min or 12 requests every 10 seconds per IP address. (weight = 50)

See more details in API Rate limits

Request

Connect

WEBSOCKET [GATEWAY_WEBSOCKET_ENDPOINT]

Message

{
  "type": "max_lp_mintable",
  "product_id": 1,
  "sender": "0x7a5ec2748e9065794491a8d29dcf3f9edb8d7c43000000000000000000000000",
  "spot_leverage": "true"
}

Request Parameters

ParameterTypeRequiredDescription

sender

string

Yes

A bytes32 sent as a hex string; includes the address and the subaccount identifier.

product_id

number

Yes

Id of perp / spot product for which to retrieve max LP mintable base amount.

spot_leverage

boolean

No

Boolean sent as a string. indicates whether leverage should be used; when set to false , returns the max amount of base LP mintable possible without borrow. Defaults to true

Response

{
  "status": "success",
  "data": {
      "max_base_amount": "34250782930221490366619",
      "max_quote_amount": "34250782930221490366619"
   },
   "request_type": "query_max_lp_mintable",
}

Last updated