prepare_covered_call · prepare covered call
may change things: you confirm before it runsPrepare a covered call: validates token, amount, strike per token (ETH), premium (ETH) and expiry against the protocol rules, then returns a preview and a kyte.sh Sell link with the form pre-filled. The seller must hold the tokens. Does not send anything. Prepares only; never sends.
Input schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"token": {
"type": "string",
"pattern": "^[A-Za-z0-9]{1,16}$"
},
"amount": {
"type": "number",
"exclusiveMinimum": 0
},
"strikePerToken": {
"type": "number",
"exclusiveMinimum": 0
},
"premium": {
"type": "number",
"exclusiveMinimum": 0
},
"expiry": {
"default": "1w",
"type": "string",
"enum": [
"1h",
"1d",
"3d",
"1w",
"2w",
"1m",
"3m"
]
},
"fillWindow": {
"type": "string",
"enum": [
"1h",
"1d",
"3d",
"1w",
"2w",
"1m",
"3m"
]
}
},
"required": [
"token",
"amount",
"strikePerToken",
"premium"
]
}