Effanuel / BitMEX-scaled-orders

Bitmex trading tool using REST API and Websocket
MIT License
33 stars 15 forks source link

could it work with local proxy #9

Closed beaquant closed 4 years ago

beaquant commented 4 years ago

hello, is it possible work with local proxy?

Effanuel commented 4 years ago

Currently the client is at http://localhost:3000 and the server is at http://localhost:3001 . I am not much of an expert on proxies, but if you just want to change the port, go to package.json in /client and app.ts in /api/src line 18.

Otherwise, there is no implementation with a normal proxy.

beaquant commented 4 years ago

Thanks, because BitMEX has many limitation, from local side, I can't access it directly. so the server should have a proxy. Anyway, thanks for your project

sf52crypto commented 4 years ago

Are the APIs restricted by geographical area? I was under the impression that you could not login from certain areas, but the server executing commands against APIs could be anywhere.

On Mon, Feb 24, 2020, 7:42 PM beaquant notifications@github.com wrote:

Thanks, because BitMEX has many limitation, from local side, I can't access it directly. so the server should have a proxy. Anyway, thanks for your project

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Effanuel/BitMEX-scaled-orders/issues/9?email_source=notifications&email_token=AOO3PKR5EOLHVEV3L6GGE5LRERSONA5CNFSM4KZ6ZKEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM2C2XY#issuecomment-590622047, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOO3PKXJ2LE6X2VLC3XSJOLRERSONANCNFSM4KZ6ZKEA .

beaquant commented 4 years ago

Are the APIs restricted by geographical area? I was under the impression that you could not login from certain areas, but the server executing commands against APIs could be anywhere. On Mon, Feb 24, 2020, 7:42 PM beaquant @.***> wrote: Thanks, because BitMEX has many limitation, from local side, I can't access it directly. so the server should have a proxy. Anyway, thanks for your project — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#9?email_source=notifications&email_token=AOO3PKR5EOLHVEV3L6GGE5LRERSONA5CNFSM4KZ6ZKEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM2C2XY#issuecomment-590622047>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOO3PKXJ2LE6X2VLC3XSJOLRERSONANCNFSM4KZ6ZKEA .

restricted by IP geographical area

Effanuel commented 4 years ago

Are the APIs restricted by geographical area? I was under the impression that you could not login from certain areas, but the server executing commands against APIs could be anywhere.

BitMEX is illegal in USA, for example. The easiest way to get around that would be to use a different server or VPN. It would still be risky tho, unless you know what you are doing.

Effanuel commented 4 years ago

This question will be kept in mind for the future builds. (If even)

sf52crypto commented 4 years ago

Regardless of where I reside, the server running APIs and trading on my behalf could be anywhere. That's what I was getting at.

On Tue, Feb 25, 2020 at 5:07 AM Juozas Rimantas notifications@github.com wrote:

Are the APIs restricted by geographical area? I was under the impression that you could not login from certain areas, but the server executing commands against APIs could be anywhere.

BitMEX is illegal in USA, for example. The easiest way to get around that would be to use a different server or VPN. It would still be risky tho, unless you know what you are doing.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Effanuel/BitMEX-scaled-orders/issues/9?email_source=notifications&email_token=AOO3PKQO77U4QQCJDD23KULRETUVTA5CNFSM4KZ6ZKEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM3LCOA#issuecomment-590786872, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOO3PKXIT76OYBSND3M72ULRETUVTANCNFSM4KZ6ZKEA .

Effanuel commented 4 years ago

Regardless of where I reside, the server running APIs and trading on my behalf could be anywhere. That's what I was getting at.

Yes, reconfiguring to some other server should work. You wouldn't be able to make it work for subcribing to a websocket, since that is done through a client.

beaquant commented 4 years ago

Regardless of where I reside, the server running APIs and trading on my behalf could be anywhere. That's what I was getting at.

I can't agree with you. In our country, China, we can't access BitMEX website/API directly, there is a wall to cut connection off. you can't see it, but it's real