DeribitEx.AdapterIntegration (deribit_ex v0.2.0)
View SourceIntegration file to add token management to Adapter.
This module provides a structured approach to patching Adapter with token management functionality. Using this approach ensures better migration control than directly modifying Adapter.ex.
Usage
Add the following line to the application.ex start function to apply patches:
DeribitEx.AdapterIntegration.apply_patches()
Summary
Functions
Applies all token management patches to Adapter.
Gets tracked request using response ID.
Checks if a message is an auth response.
Functions
@spec apply_patches() :: :ok
Applies all token management patches to Adapter.
This function would set up function replacements, but for now it's just a placeholder since the :meck library is not included in the project.
Gets tracked request using response ID.
Helper function for integration tests.
Checks if a message is an auth response.
Helper function for integration tests.