This PR fixes the issues in api/v1 calls that are done through RESTv2 with url https://api-pub.bitfinex.com.
A simple case when this occurs is callinge symbolDetails action which returns forbidden in case of api-pub subdomain:
To solve this issue we added an additional option in RESTv2 constructor named urlV1 which would be used when calling the underlying RESTv1 property. This property is optional so it will be compatible with previous versions since it falls back to url option.
Description:
This PR fixes the issues in api/v1 calls that are done through RESTv2 with url https://api-pub.bitfinex.com. A simple case when this occurs is callinge symbolDetails action which returns forbidden in case of api-pub subdomain:
To solve this issue we added an additional option in RESTv2 constructor named urlV1 which would be used when calling the underlying RESTv1 property. This property is optional so it will be compatible with previous versions since it falls back to url option.
Usage example:
Breaking changes:
New features:
Fixes:
PR status: