Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option Order Preview: Error 100 #98

Open
DrBigData opened this issue Aug 2, 2024 · 1 comment
Open

Option Order Preview: Error 100 #98

DrBigData opened this issue Aug 2, 2024 · 1 comment
Labels

Comments

@DrBigData
Copy link

Get the following error when we try to make an option order on the api (preview and actual orders) :
{"Error":{"code":100,"message":"The requested service is not currently available, please try after sometime."}

Here is the payload we send for preview orders:
preview_payload = {
"PreviewOrderRequest": {
"orderType": "OPTN",
"clientOrderId": client_order_id,
"Order": [{
"allOrNone": False,
"priceType": price_type,
"limitPrice": limit_price,
"stopPrice": stop_price,
"orderTerm": order_term,
"marketSession": market_session,
"Instrument": [{
"Product": {
"symbol": symbol,
"securityType": "OPTN",
"callPut": call_put,
"expiryYear": expiry_year,
"expiryMonth": expiry_month,
"expiryDay": expiry_day,
"strikePrice": strike_price
},
"orderAction": action,
"orderedQuantity": quantity,
"quantity": quantity
}]
}]
}
}

--

https://apisb.etrade.com/v1/accounts/{ACCOUNT_ID}/orders/preview
Copy link

github-actions bot commented Nov 8, 2024

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant