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

Submitting :post request through etrade api #1

Open
akat711 opened this issue Aug 18, 2016 · 0 comments
Open

Submitting :post request through etrade api #1

akat711 opened this issue Aug 18, 2016 · 0 comments

Comments

@akat711
Copy link

akat711 commented Aug 18, 2016

The provided examples work great, but I noticed there is no example for submitting a post request which is needed to create a trade order. My call:
response = consumer.request(:post, "https://etwssandbox.etrade.com/order/sandbox/rest/previewequityorder", access_token,{}, {}, { 'Content-Type' => 'application/xml', :xml => myxmlorder} )

The question is how can i send the xml bearing the order in the call? Thanks very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant