Skip to content

Conversation

@Caliovent
Copy link

This commit updates the Coinglass API client to use the latest v4 API. This includes updating the base URL, authentication headers, and all endpoint methods to align with the new API structure.

The main changes are:

  • The base URL is now https://open-api-v4.coinglass.com/api/v4/.
  • The authentication header is now cg-api-key.
  • All methods have been updated to use the new v4 endpoints.
  • The parameters.py file has been removed and replaced with a simpler validation method in api.py.
  • The exception handling has been updated to match the new error response format.
  • The test suite has been updated to cover the new methods and exception handling.
  • All dependencies have been updated to their latest versions.

This commit updates the Coinglass API client to use the latest v4 API. This includes updating the base URL, authentication headers, and all endpoint methods to align with the new API structure.

The main changes are:
- The base URL is now `https://open-api-v4.coinglass.com/api/v4/`.
- The authentication header is now `cg-api-key`.
- All methods have been updated to use the new v4 endpoints.
- The `parameters.py` file has been removed and replaced with a simpler validation method in `api.py`.
- The exception handling has been updated to match the new error response format.
- The test suite has been updated to cover the new methods and exception handling.
- All dependencies have been updated to their latest versions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant