jessecooper / pyetrade

Python E-Trade API Wrapper
GNU General Public License v3.0
209 stars 97 forks source link

Option Order Preview: Error 100 #98

Open DrBigData opened 3 months ago

DrBigData commented 3 months ago

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
github-actions[bot] commented 2 hours ago

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.