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

Error code Code: 796 while creating new positions with leverage #12

Open
iteddy09 opened this issue Sep 29, 2020 · 5 comments
Open

Error code Code: 796 while creating new positions with leverage #12

iteddy09 opened this issue Sep 29, 2020 · 5 comments

Comments

@iteddy09
Copy link

iteddy09 commented Sep 29, 2020

Hello,

Really nice work. Thank you for your time and implication.

Currently I think it is an issue with opening new positions.

{
  "name": "aapl",
  "type": "BUY",
  "amount": 500,
  "leverage": 2
}

leverage on aapl works on web ui but on api level this error is prompted:

{
    "timestamp": "2020-09-29T17:21:50.753+0000",
    "status": 500,
    "error": "Internal Server Error",
    "message": "Code: 796, details: null",
    "path": "/etoro-api/positions/open"
}

It works only with leverage 1.

Did you take into consideration to update it in order to create limit orders?
Thank you!

@iteddy09 iteddy09 changed the title Asset with id XXXXX was not found. Error code Code: 796 while creating new positions with leverage Sep 29, 2020
@ok24601
Copy link
Owner

ok24601 commented Sep 30, 2020 via email

@ok24601
Copy link
Owner

ok24601 commented Sep 30, 2020 via email

@iteddy09
Copy link
Author

i can implement, sure. but currently i don't managed to find documentation for "https://www.etoro.com/sapi/"

@iteddy09
Copy link
Author

did you reverse engineer the requests their web ui use ?

@ok24601
Copy link
Owner

ok24601 commented Oct 27, 2020 via email

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

2 participants