Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AssetPair.php #11

Merged
merged 4 commits into from
May 6, 2024
Merged

Conversation

Triggsy22
Copy link
Contributor

asset2 is not necceccary for the api request.
And its even possible to send more than two assets to the api.

Changed ValueObjects/AssetPair.php
Asset2 is not necceccary and its even possible to get more than two informations about assetpairs from the api.
@butschster
Copy link
Owner

Could you please get links to API where I can read about this case. And also it will be awesome to cover changes with unit tests.

@butschster butschster added the enhancement New feature or request label Aug 29, 2021
changed GetTradableAssetPairsTest.php to show, that more than one assetPair is working.
@Triggsy22
Copy link
Contributor Author

The Api Documentation is: https://docs.kraken.com/rest/#operation/getTradableAssetPairs
Ye, its not obvious that this endpoint is possible with one or more than two AssetPairs.
But just check: https://api.kraken.com/0/public/AssetPairs?pair=ETHXBT%2CBTCUSD%2CXLMUSD%2CDOTUSDT
That are four AssetPairs.
Or: https://api.kraken.com/0/public/AssetPairs?pair=ETHXBT
Thats just one AssetPair.

@butschster butschster self-requested a review May 6, 2024 06:24
@butschster butschster self-assigned this May 6, 2024
@butschster butschster merged commit 50a8ae4 into butschster:master May 6, 2024
3 checks passed
@butschster
Copy link
Owner

Thanks, despite the long delay)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants