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
Show hidden characters
| { | |
| "get_history": { | |
| "scope": "python", | |
| "prefix": "get_history", | |
| "body": [ | |
| "get_history(count=${1:20}, frequency='${2:1d}', field='${3:close}', security_list=${4:candidates}, fq=${5:None}, is_dict=${6:True})" | |
| ], | |
| "description": "获取历史行情数据" | |
| }, | |
| "get_fundamentals": { |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| PTrade 全局 API 类型定义 | |
| 扩展 Python builtins,将 ptrade API 注入全局作用域 | |
| """ | |
| from typing import Any, Callable, Dict, List, Optional, Union | |
| import pandas as pd | |
| # ==================== 基础 API ==================== |