当前位置:网站首页>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
边栏推荐
猜你喜欢

电气工程及其自动化

换个姿势做运维!GOPS 2022 · 深圳站精彩内容抢先看!

AWS learning notes (I)

用全连接+softmax对图片的feature进行分类

Matlb| economic scheduling with energy storage, opportunity constraints and robust optimization

Cloud Mail .NET Edition

Remember the problem analysis of oom caused by a Jap query
Django数据库(SQlite)基本入门使用教程

Redis入门完整教程:复制配置

Mmdetection3d loads millimeter wave radar data
随机推荐
Redis introduction complete tutorial: replication principle
Unity uses maskablegraphic to draw a line with an arrow
Dotconnect for DB2 Data Provider
知识图谱构建全流程
dotConnect for DB2数据提供者
Es6中Promise的使用
MMDetection3D加载毫米波雷达数据
Left path cloud recursion + dynamic planning
写作系列之contribution
Redis入门完整教程:复制原理
Redis入门完整教程:复制拓扑
C language exercises_ one
【2022国赛模拟】多边形——计算几何、二分答案、倍增
Safety delivery engineer
wzoi 1~200
Leetcode 77: combination
How to write test cases for test coupons?
Django database (SQLite) basic introductory tutorial
Cloud Mail . NET Edition
从零安装Redis