Add Parameter Suggestion Endpoint with LibertAI Integration#4
Merged
MHHukiewitz merged 5 commits intomainfrom Dec 27, 2024
Merged
Add Parameter Suggestion Endpoint with LibertAI Integration#4MHHukiewitz merged 5 commits intomainfrom
MHHukiewitz merged 5 commits intomainfrom
Conversation
Author
Example of new endpointExample 1: Get Suggestions for Missing Required Parameters{
"strategy_id": "bollinger_v1",
"parameters": {
"bb_std": 2.0,
"trading_pair": "ETH-USDT"
}
}Response{
"suggestions": [
{
"parameter_name": "bb_length",
"suggested_value": 20,
"reasoning": "A 20-period length is standard for Bollinger Bands and provides a good balance between responsiveness and noise filtering.",
"differs_from_default": false,
"differs_from_provided": true
},
{
"parameter_name": "bb_long_threshold",
"suggested_value": 0.2,
"reasoning": "Setting the long threshold to 0.2 means entering positions when price is 20% below the middle band, which is a conservative entry point for mean reversion.",
"differs_from_default": true,
"differs_from_provided": true
}
],
"summary": "These parameters are configured for conservative mean reversion trading using Bollinger Bands, suitable for volatile crypto markets."
} |
cb6b664 to
77e1d46
Compare
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR introduces a new endpoint that allows users to get AI-powered suggestions for strategy parameters. The system can either suggest values for missing required parameters or provide optimized values for specific requested parameters.
Key Changes
New Endpoint
/strategies/suggest-parametersPOST endpointModels
ParameterSuggestionRequestto support optional parameter selectionLibertAI Integration
Testing
Added comprehensive test suite covering: