ok24601 / etoro-api

etoro trading REST API
ISC License
99 stars 48 forks source link

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

Open iteddy09 opened 3 years ago

iteddy09 commented 3 years ago

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!

ok24601 commented 3 years ago

hi, thanks for the interest to this project.

I'll investigate it and let you know.

It could be something with watchlist.json try to delete it and try again.

Best regards, Oleh


От: iteddy09 notifications@github.com Отправлено: 29 сентября 2020 г. 19:04 Кому: oleh2208/etoro-api etoro-api@noreply.github.com Копия: Subscribed subscribed@noreply.github.com Тема: [oleh2208/etoro-api] Asset with id XXXXX was not found. (#12)

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": 5, "takeProfitRate": 350, "stopLossRate": 105 }

always return regardless of instrument used.:

{ "timestamp": "2020-09-29T17:01:44.485+0000", "status": 500, "error": "Internal Server Error", "message": "Asset with id 1001 was not found.", "path": "/etoro-api/positions/open" }

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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/oleh2208/etoro-api/issues/12, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADHNNVVOGUB32ABYMLDA5LLSIIHRRANCNFSM4R6B3VBQ.

ok24601 commented 3 years ago

About order API, it's relatively easy to implement, although I have a lot to do now and I can't continue with this soon.


От: iteddy09 notifications@github.com Отправлено: 29 сентября 2020 г. 19:04 Кому: oleh2208/etoro-api etoro-api@noreply.github.com Копия: Subscribed subscribed@noreply.github.com Тема: [oleh2208/etoro-api] Asset with id XXXXX was not found. (#12)

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": 5, "takeProfitRate": 350, "stopLossRate": 105 }

always return regardless of instrument used.:

{ "timestamp": "2020-09-29T17:01:44.485+0000", "status": 500, "error": "Internal Server Error", "message": "Asset with id 1001 was not found.", "path": "/etoro-api/positions/open" }

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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/oleh2208/etoro-api/issues/12, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADHNNVVOGUB32ABYMLDA5LLSIIHRRANCNFSM4R6B3VBQ.

iteddy09 commented 3 years ago

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

iteddy09 commented 3 years ago

did you reverse engineer the requests their web ui use ?

ok24601 commented 3 years ago

yes


От: iteddy09 notifications@github.com Отправлено: 27 октября 2020 г. 15:16 Кому: oleh2208/etoro-api etoro-api@noreply.github.com Копия: oleh2208 oleh_22_08@outlook.com; Comment comment@noreply.github.com Тема: Re: [oleh2208/etoro-api] Error code Code: 796 while creating new positions with leverage (#12)

did you reverse engineer the requests their web ui use ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/oleh2208/etoro-api/issues/12#issuecomment-717235544, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADHNNVSF273FAEHUB577GQLSM3B3FANCNFSM4R6B3VBQ.