ok24601 / etoro-api

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

[New feature needed]: Can we change the enpoint? #4

Open HengyueLi opened 4 years ago

HengyueLi commented 4 years ago

Firstly, a very nice project!

In my area, the request (by the browser directly) etoro.com will be directed to etorocn.com.cn. So far, it seems that the backend database is the same. Is it possible to add an option to reset the endpoint? In your code, I tried to replace some of the URLs, but not pretty sure if this is work or not (seems work!). Also, I do not know what is ...push-demo-lightstreamer.cloud.etoro....

Anyway, if you can leave me an "official" place to replace it, that would be good.

ok24601 commented 4 years ago

Hello,

Thanks for your interest to this project.

Only place where browser is involved in this project is EtoroMetadataService where I read the cookies from etoro.comhttps://www.etoro.com to use them in all futher requests, so if you are being redirected you can change this URL there. About push-demo-lightstreamer.cloud.etoro,it is a websocket server (whis uses Lightstreamer protocol) for listnening events like price changing, open/close trades, stop losses and take profits trigering etc.


От: H. Li notifications@github.com Отправлено: 16 мая 2020 г. 2:08 Кому: oleh2208/etoro-api etoro-api@noreply.github.com Копия: Subscribed subscribed@noreply.github.com Тема: [oleh2208/etoro-api] [New feature needed]: Can we change the enpoint? (#4)

Firstly, a very nice project!

In my area, the request (by the browser directly) etoro.com will be directed to etorocn.com.cn. So far, it seems that the backend database is the same. Is it possible to add an option to reset the endpoint? In your code, I tried to replace some of the URLs, but not pretty sure if this is work or not (seems work!). Also, I do not know what is ...push-demo-lightstreamer.cloud.etoro....

Anyway, if you can leave me an "official" place to replace it, that would be good.

— 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/4, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADHNNVV4XVPM453KC47NEPDRRXKOPANCNFSM4NCVBLKA.