-
Notifications
You must be signed in to change notification settings - Fork 864
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1)qmt tick and stats 2)tag and trading utils
- Loading branch information
Showing
161 changed files
with
38,985 additions
and
1,562 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
POST http://127.0.0.1:8090/api/work/create_stock_pool_info | ||
accept: application/json | ||
Content-Type: application/json | ||
|
||
{ | ||
"stock_pool_name": "核心资产", | ||
"stock_pool_type": "custom" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
POST http://127.0.0.1:8090/api/work/create_stock_pools | ||
accept: application/json | ||
Content-Type: application/json | ||
|
||
{ | ||
"stock_pool_name": "核心资产", | ||
"entity_ids": [ | ||
"stock_sh_600519" | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
GET http://127.0.0.1:8090/api/factor/get_factors | ||
accept: application/json | ||
|
||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
POST http://127.0.0.1:8090/api/factor/query_factor_result | ||
accept: application/json | ||
Content-Type: application/json | ||
|
||
|
||
{ | ||
"entity_ids": [ | ||
"stock_sz_300133" | ||
], | ||
"factor_name": "LiveOrDeadFactor" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
POST http://127.0.0.1:8090/api/factor/query_kdata | ||
accept: application/json | ||
Content-Type: application/json | ||
|
||
|
||
{ | ||
"entity_ids": [ | ||
"stock_sz_002085", | ||
"stock_sz_300133" | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
GET http://127.0.0.1:8090/api/work/get_stock_pool_info | ||
accept: application/json | ||
|
||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
GET http://127.0.0.1:8090/api/work/get_stock_pools?stock_pool_name=main_line | ||
accept: application/json | ||
|
||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
POST http://127.0.0.1:8090/api/work/build_stock_tags | ||
accept: application/json | ||
Content-Type: application/json | ||
|
||
[ | ||
{ | ||
"entity_id": "stock_sz_002085", | ||
"name": "万丰奥威", | ||
"main_tag": "低空经济", | ||
"main_tag_reason": "2023年12月27日回复称,公司钻石eDA40纯电动飞机已成功首飞;eVTOL项目已联动海外钻石技术开发团队,在绿色、智能、垂直起降等方面的设计体现未来领域应用场景。", | ||
"sub_tag": "低空经济", | ||
"sub_tag_reason": "2023年12月27日回复称,公司钻石eDA40纯电动飞机已成功首飞;eVTOL项目已联动海外钻石技术开发团队,在绿色、智能、垂直起降等方面的设计体现未来领域应用场景。", | ||
"active_hidden_tags": null | ||
} | ||
] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
POST http://127.0.0.1:8090/api/work/create_hidden_tag_info | ||
accept: application/json | ||
Content-Type: application/json | ||
|
||
{ | ||
"tag": "中字头", | ||
"tag_reason": "央企,国资委控股" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
POST http://127.0.0.1:8090/api/work/create_main_tag_info | ||
accept: application/json | ||
Content-Type: application/json | ||
|
||
{ | ||
"tag": "未知", | ||
"tag_reason": "行业定位不清晰" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
POST http://127.0.0.1:8090/api/work/create_sub_tag_info | ||
accept: application/json | ||
Content-Type: application/json | ||
|
||
{ | ||
"tag": "低空经济", | ||
"tag_reason": "低空经济是飞行器和各种产业形态的融合,例如\"无人机+配送\"、\"直升机或evto载人飞行\"、\"无人机+应急救援\"、\"无人机+工业场景巡检\"等" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
GET http://127.0.0.1:8090/api/work/get_hidden_tag_info | ||
accept: application/json | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
GET http://127.0.0.1:8090/api/work/get_main_tag_info | ||
accept: application/json | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
GET http://127.0.0.1:8090/api/work/get_sub_tag_info | ||
accept: application/json | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
POST http://127.0.0.1:8090/api/work/query_simple_stock_tags | ||
accept: application/json | ||
Content-Type: application/json | ||
|
||
|
||
{ | ||
"entity_ids": [ | ||
"stock_sz_002085", | ||
"stock_sz_000099", | ||
"stock_sz_002130" | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
POST http://127.0.0.1:8090/api/work/query_stock_tag_stats | ||
accept: application/json | ||
Content-Type: application/json | ||
|
||
{ | ||
"stock_pool_name": "main_line" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
POST http://127.0.0.1:8090/api/work/query_stock_tags | ||
accept: application/json | ||
Content-Type: application/json | ||
|
||
|
||
{ | ||
"entity_ids": [ | ||
"stock_sz_000099", | ||
"stock_sz_002085", | ||
"stock_sz_001696" | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
POST http://127.0.0.1:8090/api/work/set_stock_tags | ||
accept: application/json | ||
Content-Type: application/json | ||
|
||
{ | ||
"entity_id": "stock_sz_001366", | ||
"name": "播恩集团", | ||
"main_tag": "医药", | ||
"main_tag_reason": "合成生物概念", | ||
"main_tags": { | ||
"农业": "来自行业:农牧饲渔" | ||
}, | ||
"sub_tag": "生物医药", | ||
"sub_tag_reason": "合成生物概念", | ||
"sub_tags": null, | ||
"active_hidden_tags": null | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
POST http://127.0.0.1:8090/api/trading/build_query_stock_quote_setting | ||
accept: application/json | ||
Content-Type: application/json | ||
|
||
{ | ||
"stock_pool_name": "main_line", | ||
"main_tags": ["低空经济","新能源"] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
POST http://127.0.0.1:8090/api/trading/build_trading_plan | ||
accept: application/json | ||
Content-Type: application/json | ||
|
||
{ | ||
"stock_id": "stock_sz_300133", | ||
"trading_date": "2024-04-23", | ||
"expected_open_pct": 0.02, | ||
"buy_price": 6.9, | ||
"sell_price": null, | ||
"trading_reason": "主线", | ||
"trading_signal_type": "open_long" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
GET http://127.0.0.1:8090/api/trading/get_current_trading_plan | ||
accept: application/json | ||
|
||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
GET http://127.0.0.1:8090/api/trading/get_future_trading_plan | ||
accept: application/json | ||
|
||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
GET http://127.0.0.1:8090/api/trading/get_query_stock_quote_setting | ||
accept: application/json | ||
|
||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
POST http://127.0.0.1:8090/api/trading/query_stock_quotes | ||
accept: application/json | ||
Content-Type: application/json | ||
|
||
{ | ||
"main_tag": "低空经济", | ||
"stock_pool_name": "vol_up", | ||
"limit": 500, | ||
"order_by_field": "change_pct" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
POST http://127.0.0.1:8090/api/trading/query_trading_plan | ||
accept: application/json | ||
Content-Type: application/json | ||
|
||
{ | ||
"time_range": { | ||
"relative_time_range": { | ||
"interval": -30, | ||
"time_unit": "day" | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.