当前位置:网站首页>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
边栏推荐
- Here comes a white paper to uncover the technology behind Clickhouse, a node with 10000 bytes!
- wzoi 1~200
- Summary of basic debugging steps of S120 driver
- A complete tutorial for getting started with redis: problem location and optimization
- 惯导标定国内外研究现状小结(删减版)
- Unity custom webgl packaging template
- 从零安装Redis
- c语言(字符串)如何把字符串中某个指定的字符删除?
- Detailed explanation of 19 dimensional integrated navigation module sinsgps in psins (initial assignment part)
- Mmdetection3d loads millimeter wave radar data
猜你喜欢

Qt蓝牙:QBluetoothDeviceInfo

Use of promise in ES6

Five reasons for clothing enterprises to deploy MES management system

Install redis from zero

Redis入门完整教程:客户端案例分析

MySQL - common functions - string functions

Kysl Haikang camera 8247 H9 ISAPI test

Redis introduction complete tutorial: replication principle

Leetcode 77: combination

S120驱动器基本调试步骤总结
随机推荐
2022 spring recruitment begins, and a collection of 10000 word interview questions will help you
Number theory --- fast power, fast power inverse element
MySQL提升大量数据查询效率的优化神器
The annual salary of general test is 15W, and the annual salary of test and development is 30w+. What is the difference between the two?
Detailed explanation of 19 dimensional integrated navigation module sinsgps in psins (initial assignment part)
oracle连接池长时间不使用连接失效问题
AWS learning notes (I)
Unity uses maskablegraphic to draw a line with an arrow
Apifox, is your API interface document rolled up like this?
Google Earth Engine(GEE)——Landsat 全球土地调查 1975年数据集
Work of safety inspection
PSINS中19维组合导航模块sinsgps详解(时间同步部分)
Redis getting started complete tutorial: replication configuration
记一次JAP查询导致OOM的问题分析
Detailed explanation of 19 dimensional integrated navigation module sinsgps in psins (filtering part)
运维管理系统有哪些特色
Qt蓝牙:QBluetoothDeviceInfo
What are the characteristics of the operation and maintenance management system
慧通编程入门课程 - 2A闯关
QPushButton-》函数精解