Kucoin / kucoin-php-sdk

PHP SDK for KuCoin API.
https://docs.kucoin.com
MIT License
79 stars 41 forks source link

allow relative paths in base uri #120

Closed eightfourseventwo closed 1 month ago

eightfourseventwo commented 2 years ago

We have a service which mocks responses from several exchanges at http://mocks/kucoin etc. Because the URI was hardcoded with a / prefix, Guzzle would always request http://mocks/api/v1/accounts instead of http://mocks/kucoin/api/v1/accounts, even with the base URL set to https://mocks/kucoin.

This PR allows setting the base URL to an url with a path

hhxsv5 commented 1 month ago

Breaking Change