It appears that the API call only returns Stable Rate loans but not the Flex Rate ones that I have. This seems to count for all of the Loan endpoints, btw.
Were you able to obtain your flexible loans at all? I’ve chat to customer service and looks like I encountered the same issue. The issue was raised as a result.
It seems that the API call only provides information about Stable Rate loans and not Flex Rate loans, which is the type I currently have. This observation applies to all of the Loan endpoints, by the way.
It appears that when you make the Python API call to retrieve your ongoing loan orders using the variable varResponse = api.loan_collateral_data(collateralCoin=strSymbolp1), you are receiving a response of {‘total’: 0, ‘rows’: }. This response indicates that there are no loan orders currently associated with the specified collateral coin.
There could be several reasons why you are not seeing any loan orders in the response:
No active loans: It’s possible that you currently don’t have any active loan orders for the specified collateral coin. Double-check your account to ensure that you have active loans.
Incorrect collateral coin symbol:) Make sure that the strSymbolp1 variable contains the correct symbol of the collateral coin for which you want to retrieve the loan orders. Verify that the symbol is accurate and matches the symbol used in your account.
Authorization and permissions Ensure that the API key you are using has the necessary permissions to access loan order data. Check your API configuration page in the BN portal and confirm that you have enabled the appropriate permissions for “Enable Margin Loan, Repay & Transfer”.
If you have confirmed that you have active loans and have checked the above points, but you still don’t see any loan orders in the response, it may be worth reaching out to the support team of the BN portal or the API provider for further assistance. They should be able to help you troubleshoot the issue and provide more specific guidance based on your account settings and API usage.
It seems like you’re encountering an issue with an API call related to borrowing and getting loan ongoing orders. When the API returns zero results, there could be various reasons for this. Here are some common troubleshooting steps to address this issue:
Check API Endpoint and Parameters:
Ensure that you are using the correct API endpoint and parameters for the “Borrow - Get Loan Ongoing Orders” request. Double-check the API documentation for any required or optional parameters.
Authentication:
Make sure that you are properly authenticated and authorized to access this API. Check your API key or credentials to ensure they are valid.
Rate Limiting:
Some APIs have rate limits to prevent abuse. Check if you’ve exceeded the rate limit for this specific endpoint. If so, you may need to wait before making additional requests.
Data Availability:
Confirm that there are actually ongoing loan orders for borrowing at the moment. It’s possible that there were no matching orders available when you made the API call.
Error Handling:
Check for error responses from the API. The response might contain error codes or messages that can help you diagnose the issue.
Logging and Debugging:
Implement logging and debugging in your code to track the API request and response. This can help you identify any issues with your API call.
API Version Compatibility:
Ensure that you are using the correct version of the API, and that your code is compatible with that version.
Network and Connectivity:
Verify that your network connection is stable and that there are no issues with connectivity that might prevent the API call from reaching the server.
Support and Documentation:
If you’ve tried all the above steps and the issue persists, consider reaching out to the API provider’s support for assistance. They may have specific insights into the problem.
Testing Environments:
If possible, use a testing or sandbox environment provided by the API to test your requests. This can help isolate issues before using the production environment.