Skip to content

Trailing Stop Losses Not working #22

Open
@Vampirebat

Description

@Vampirebat

I cant get the trailing stop loss to work in any order, either when i make the order or even to modify an order... some of the errors i get are.

raceback (most recent call last):
File "/home/vamp/opt/v20-python-samples/env/bin/v20-order-stop-loss", line 11, in
load_entry_point('v20-python-samples', 'console_scripts', 'v20-order-stop-loss')()
File "/home/vamp/opt/v20-python-samples/src/order/stop_loss.py", line 47, in main
orderArgs.parse_arguments(args)
File "/home/vamp/opt/v20-python-samples/src/order/args.py", line 54, in parse_arguments
parser(args)
File "/home/vamp/opt/v20-python-samples/src/order/args.py", line 67, in
lambda args: self.parse_trade_id(args)
File "/home/vamp/opt/v20-python-samples/src/order/args.py", line 75, in parse_trade_id
if args.trade.id[0] == '@':
AttributeError: 'Namespace' object has no attribute 'trade'

everything has been working fine, just not trailing stop losses, any help would be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions