The GetStrategyList
method is used to obtain platform strategy information.
{
"code": 0,
"data": {
"result": {
"all": 123,
"strategies": [{
"category": 9,
"date": "2024-11-10 20:40:04",
"description": "",
"forked": 0,
"hits": 0,
"id": 123,
"is_buy": false,
"is_owner": false,
"language": 2,
"last_modified": "2024-11-11 17:23:52",
"name": "HedgeGridStrategy",
"profile": {
"avatar": "...",
"nickname": "abc",
"uid": "4ed225440db1eda23fe05ed10184113e"
},
"public": 0,
"tags": "",
"uid": "4ed225440db1eda23fe05ed10184113e",
"username": "abc"
}]
},
"error": null
}
}
The offset
parameter is used to set the offset when querying.
offset
true
number
The length
parameter is used to set the length of the query.
length
true
number
The strategyType
parameter is used to set the strategy type to be queried.
strategyType
parameter setting 0
: all strategies.strategyType
parameter setting 1
: The strategy is public.strategyType
parameter setting 2
: strategy to be reviewed.strategyType
true
number
The category
parameter is used to set the strategy category to be queried.
category
parameter setting -1
: all strategies.category
parameter setting 0
: custom strategy.category
true
number
The needArgs
parameter is used to set whether the strategy to be queried has parameters.
needArgs
parameter setting 0
: all strategies.needArgs
true
number
The language
parameter is used to set the programming language of the strategy to be queried.
language
parameter settings 0
: JavaScript language.language
parameter settings 1
: Python language.language
parameter settings 2
: C++ language.language
parameter settings 3
: Visualization strategy.language
parameter settings 4
: My language.language
parameter settings 5
: PINE language.language
true
number
The kw
parameter is used to set the keyword of the strategy to be queried.
kw true string
DeleteRobot NewRobot