Skip to content

Unexpected error placing option order: name 'OrderType' is not defined #33

@jackyshan82

Description

@jackyshan82

error log from container

it seems in helpers.py, the OrderType was not defined or imported.

{"jsonrpc":"2.0","id":24,"result":{"content":[{"type":"text","text":"Error executing tool close_position: 1 validation error for close_positionArguments\npercentage\n Input should be a valid string [type=string_type, input_value=50, input_type=int]\n For further information visit https://errors.pydantic.dev/2.12/v/string_type"}],"isError":true}}
Processing request of type CallToolRequest
{"jsonrpc":"2.0","id":25,"result":{"content":[{"type":"text","text":"Error executing tool close_position: 1 validation error for close_positionArguments\npercentage\n Input should be a valid string [type=string_type, input_value=50, input_type=int]\n For further information visit https://errors.pydantic.dev/2.12/v/string_type"}],"isError":true}}
Processing request of type CallToolRequest
{"jsonrpc":"2.0","id":26,"result":{"content":[{"type":"text","text":"Error executing tool close_position: 1 validation error for close_positionArguments\npercentage\n Input should be a valid string [type=string_type, input_value=50, input_type=int]\n For further information visit https://errors.pydantic.dev/2.12/v/string_type"}],"isError":true}}
Processing request of type CallToolRequest
{"jsonrpc":"2.0","id":27,"result":{"content":[{"type":"text","text":"\n Unexpected error placing option order: name 'OrderType' is not defined\n\n Please try:\n 1. Verifying all input parameters\n 2. Checking your account status\n 3. Ensuring market is open\n 4. Contacting support if the issue persists\n "}],"structuredContent":{"result":"\n Unexpected error placing option order: name 'OrderType' is not defined\n\n Please try:\n 1. Verifying all input parameters\n 2. Checking your account status\n 3. Ensuring market is open\n 4. Contacting support if the issue persists\n "},"isError":false}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions