当前位置:网站首页>Nuggets quantification: obtain data through the history method, and use the same proportional compound weight factor as Sina Finance and snowball. Different from flush
Nuggets quantification: obtain data through the history method, and use the same proportional compound weight factor as Sina Finance and snowball. Different from flush
2022-07-07 03:01:00 【AI Zeng Xiaojian】
# coding=utf-8
from __future__ import print_function, absolute_import
from gm.api import *
# Data can be extracted directly , Nuggets terminal needs to be opened , Interface access is through network request , The efficiency of general , Market data can be obtained through subscribe Subscription mode
# Set up token, Check out the existing token ID, In user - Get from key management
set_token('xxxxxxxxxxxxxxxd')
# Check the historical market , Adopt the way of fixed-point weight recovery , adjust Right of reply before designation ,adjust_end_time Specify the resumption time
data = history(symbol='SHSE.600000', frequency='1d', start_time='2020-01-01', end_time='2022-07-04', # 09:00:00 16:00:00
fields='bob,open,high,low,close', adjust=ADJUST_POST, adjust_end_time='2022-07-05',df=True) #adjust_end_time='2020-12-31',
data['bob'] = data['bob'].astype(str)
data['bob'] = data['bob'].str[0:10]
data
边栏推荐
- Detailed explanation of 19 dimensional integrated navigation module sinsgps in psins (time synchronization part)
- Redis Getting started tutoriel complet: positionnement et optimisation des problèmes
- Digital scrolling increases effect
- Detailed explanation of 19 dimensional integrated navigation module sinsgps in psins (filtering part)
- Babbitt | metauniverse daily must read: is IP authorization the way to break the circle of NFT? What are the difficulties? How should holder choose the cooperation platform
- 你不可不知道的Selenium 8种元素定位方法,简单且实用
- HAVE FUN | “飞船计划”活动最新进展
- 慧通编程入门课程 - 2A闯关
- MMDetection3D加载毫米波雷达数据
- Static proxy of proxy mode
猜你喜欢
Django数据库(SQlite)基本入门使用教程

Redis入門完整教程:問題定比特與優化

电气工程及其自动化

Remember the problem analysis of oom caused by a Jap query

左程云 递归+动态规划

Redis getting started complete tutorial: client management

【2022国赛模拟】多边形——计算几何、二分答案、倍增

Cloud Mail . NET Edition

NuScenes数据集关于Radar数据的统计

Detailed explanation of 19 dimensional integrated navigation module sinsgps in psins (time synchronization part)
随机推荐
S120驱动器基本调试步骤总结
MySQL is an optimization artifact to improve the efficiency of massive data query
Form validation of uniapp
Data analysis from the perspective of control theory
PSINS中19维组合导航模块sinsgps详解(滤波部分)
Oracle中日期的使用方法实例
oracle连接池长时间不使用连接失效问题
AWS learning notes (I)
Five reasons for clothing enterprises to deploy MES management system
How-PIL-to-Tensor
LeetCode 77:组合
Derivative, partial derivative, directional derivative
Redis introduction complete tutorial: replication principle
电气工程及其自动化
Babbitt | metauniverse daily must read: is IP authorization the way to break the circle of NFT? What are the difficulties? How should holder choose the cooperation platform
KYSL 海康摄像头 8247 h9 isapi测试
实施MES管理系统时,哪些管理点是需要注意的
Mmdetection3d loads millimeter wave radar data
wzoi 1~200
PSINS中19维组合导航模块sinsgps详解(时间同步部分)