You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fixml changed for options orders and I have been getting the error: ally.exception.ExecutionException: This symbol is not valid for this request
when submitting with py ally the fixml should be:
`
def set_symbol(self, symbol: str):
"""Sets the orders instrument.
Can be viewed at obj.instrument
"""
if len(symbol) > 15:
# Almost certainly an option, if not unintelligible
try:
# Extract the symbol
underlying = option_symbol(symbol)
# Extract strike price
strike = option_strike(symbol)
# Extract expiration date
exp_date = option_maturity(symbol)
# Extract
callput = option_callput(symbol)
# Wrap it up and spank it on the bottom!
self.instrument = Option(
direction=callput,
underlying=underlying,
exp_date=exp_date,
strike=strike,
)
except:
raise
else:
self.instrument = Stock(symbol=symbol)`
found it just a missing else. should be a simple push for you guys
The fixml changed for options orders and I have been getting the error:
ally.exception.ExecutionException: This symbol is not valid for this request
when submitting with py ally the fixml should be:
instead of the given:
according to the link:
[https://www.ally.com/api/invest/documentation/trading/]
The text was updated successfully, but these errors were encountered: