You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User Story
As a developer, I want to add Bitget as a source for fetching rates for all supported currencies (e.g., NGN, KES, GHS, etc.), so that we can calculate the median rate from multiple providers (Quidax, Binance, and Bitget) to improve accuracy and reliability.
Acceptance Criteria
GIVEN a supported currency (e.g., NGN, KES, GHS) WHEN fetching rates for a token/fiat pair THEN the system should fetch rates from Bitget, Binance, and Quidax (if applicable) and calculate the median
GIVEN the currency is NGN WHEN fetching rates for USDT/NGN THEN the system should fetch rates from Quidax and Bitget
GIVEN the currency is not NGN WHEN fetching rates for USDT/ THEN the system should fetch rates from Binance and Bitget
GIVEN the logic for fetching rates from external providers WHEN refactoring the code THEN the logic should be moved to /utils/external_markets.go for better organization and reusability
GIVEN the Bitget API is called WHEN fetching P2P ads THEN the system should fetch the last 20 ads and calculate the median price
User Story
As a developer, I want to add Bitget as a source for fetching rates for all supported currencies (e.g., NGN, KES, GHS, etc.), so that we can calculate the median rate from multiple providers (Quidax, Binance, and Bitget) to improve accuracy and reliability.
Acceptance Criteria
GIVEN a supported currency (e.g., NGN, KES, GHS)
WHEN fetching rates for a token/fiat pair
THEN the system should fetch rates from Bitget, Binance, and Quidax (if applicable) and calculate the median
GIVEN the currency is NGN
WHEN fetching rates for USDT/NGN
THEN the system should fetch rates from Quidax and Bitget
GIVEN the currency is not NGN
WHEN fetching rates for USDT/
THEN the system should fetch rates from Binance and Bitget
GIVEN the logic for fetching rates from external providers
WHEN refactoring the code
THEN the logic should be moved to
/utils/external_markets.go
for better organization and reusabilityGIVEN the Bitget API is called
WHEN fetching P2P ads
THEN the system should fetch the last 20 ads and calculate the median price
Tech Details
/utils/external_markets.go
.Notes/Assumptions
The text was updated successfully, but these errors were encountered: