CoinAlpha / gateway-api

Apache License 2.0
47 stars 25 forks source link

Perpetual protocol - could not detect network #45

Closed RC-13 closed 2 years ago

RC-13 commented 3 years ago

When using spot-perpetual strategy and perpetual protocol as derivatives exchange, doing balance check or starting strategy will result in failure to connect to the exchange. Upon checking the gateway side, we see that there is a network problem. perpfi-gateway Client side: perpfi1

After a discussion with Victor, it appears that the issue is due to a faulty RPC provider, currently, https://dai.poa.network/ is used, we tried changing to a different provider https://rpc.xdaichain.com/ but still getting some problem such as opening and closing position. spot.zip

PtrckM commented 3 years ago

to enter custom rpc url provider: https://github.com/CoinAlpha/gateway-api/pull/37/commits/aec0f15c03b038e417a6cb0cd63cde4bd3f9c8d5

fengtality commented 2 years ago

Since Perpetual Protocol has moved from xDAI to Arbitrum, I think we should fix this issue in conjunction with adding this connector to v2 and changing to Arbitrum.