PoolAsk

In order to sell an option from a pool, a PoolAsk order has to be created and signed.

You'll need to create PoolAsks in order to issue options from a pool. Once a PoolAsk is created, it needs to be signed by the owner or the admin (Oracle) of the pool. The pool will validate the signature to see if the correct address has signed it.

{
      // The id of this order, it is up to the creator to set it​. Pools will check this id to determine if the order has been taken or cancelled.
      "id": 182736,
      // The address of the pool that will issue this option​
      "poolAddress": "0x1fd748b4786584da205eaf3f858744eb614b0fce",
      // The option type, can be CALL or PUT​
      "optionType": "CALL",
      // The strike price of the option (in Wei for ETH pools)​
      "strikePrice": "5500000000000000000",
      // The premium to be paid to buy this option (in Wei for ETH pools)​
      "premium": "700000000000000000",
      // The expiry of the option​ (in epoch seconds)
      "expiry": 1679616000,
      // The token id to be collateralized for the CALL option, the token has to be owned by the pool and not already collateralized for an existing CALL option.
      // Should be 0 for PUT options​
      "tokenId": 123,
      // The expiration of this PoolAsk (in epoch seconds), after this date this order cannot be filled
      "orderExpiry": 1679615000
}

Creating PoolAsks

Fetching PoolAsks

Deleting PoolAsks

triangle-exclamation

Updating PoolAsks

Coming soon...

Last updated