Hello this API returns UnprocessableEntity
my code
var options = new RestClientOptions(“https://public-api.birdeye.so/trader/gainers-losers");
var client = new RestClient(options);
var request = new RestRequest();
// Add query parameters
request.AddQueryParameter(“type”, “1W”); // Ensure this value is valid
request.AddQueryParameter(“sort_by”, “PnL”);
request.AddQueryParameter(“sort_type”, “desc”);
request.AddQueryParameter(“offset”, “0”);
request.AddQueryParameter(“limit”, “10”);
// Add headers
request.AddHeader(“accept”, “application/json”);
request.AddHeader(“x-chain”, “all”); // Ensure ‘all’ is valid
request.AddHeader(“X-API-KEY”, _apiKey);
try
var response = await client.GetAsync(request);
}
Hello sir
Please refer to our documentation on BDS (Birdeye Data Services) here:
https://docs.birdeye.so/docs/birdeye-data-services-bds
If you have any further questions or issues, feel free to contact us via email or submit a ticket through the following link:
https://docs.birdeye.so/docs/enterprise-contact
If you’ve already purchased BSD Premium, please provide your email address below, and I will be happy to assist you further.
https://public-api.birdeye.so/trader/gainers-losers doesnt seem to be in the list of the offered services (like standard, premium). So I don’t have enough information it this API fits to standard plan.
Hello sir, you can check which API you can access here: