// Try to withdraw more than long position amount
{
"statusCode": 400,
"message": "Cannot make long position to become short position",
"error": "Bad Request"
}
// Try to deposit into long position
{
"statusCode": 400,
"message": "Cannot increasing existing long position",
"error": "Bad Request"
}
// Try to deposit more than short position amount
{
"statusCode": 400,
"message": "Cannot make short position to become long position",
"error": "Bad Request"
}
// Try to withdraw from short position
{
"statusCode": 400,
"message": "Cannot decreasing existing short position",
"error": "Bad Request"
}
// Invalid token address
{
"statusCode": 400,
"message": "Cannot settle unexist position",
"error": "Bad Request"
}
// Invalid mm
{
"statusCode": 404,
"message": "MM Settings not found",
"error": "Not Found"
}
Creates a settlement request and starts the time delay. Note that Market Maker will be paused from other activities at this point.