The Algo API supports the following types for the inputs and outputs:
{
"type": "string"
}
You can specify those optional parameters:
{
"type": "string",
"availableValues": ["string"],
"default": "string"
}
{
"type": "number"
}
You can specify those optional parameters:
{
"type": "string",
"availableValues": ["number"],
"default": "number",
"min": "number",
"max": "number"
}
{
"type": "boolean"
}
You can specify an optional default value:
{
"type": "boolean",
"default": "boolean"
}
When you specify an array, you need to specify the type of the array's elements. The available types are:
- string
- number
- boolean
- dict
- array
{
"type": "array",
"arrayType": "string"
}
You can specify those optional parameters:
{
"type": "array",
"arrayType": "string",
"lengthMin": "number",
"lengthMax": "number"
}
Back to the Algo API page.