当前位置:网站首页>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
边栏推荐
- Unity webgl adaptive web page size
- [2022 national tournament simulation] polygon - computational geometry, binary answer, multiplication
- C language exercises_ one
- Analysis of USB network card sending and receiving data
- 左程云 递归+动态规划
- A complete tutorial for getting started with redis: AOF persistence
- Qt蓝牙:QBluetoothDeviceInfo
- Software testing -- common assertions of JMeter interface testing
- S120驱动器基本调试步骤总结
- MMDetection3D加载毫米波雷达数据
猜你喜欢
Cloud Mail .NET Edition
Unity uses maskablegraphic to draw a line with an arrow
How to write test cases for test coupons?
MySQL is an optimization artifact to improve the efficiency of massive data query
AWS learning notes (I)
Use of promise in ES6
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?
Redis introduction complete tutorial: client case analysis
The panel floating with the mouse in unity can adapt to the size of text content
Summary of basic debugging steps of S120 driver
随机推荐
MySQL - common functions - string functions
QPushButton-》函数精解
Fundamentals of process management
AWS learning notes (I)
c语言字符串排序
Qt蓝牙:QBluetoothDeviceInfo
Use of promise in ES6
Huitong programming introductory course - 2A breakthrough
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?
【软件测试】最全面试问题和回答,全文背熟不拿下offer算我输
Examples of how to use dates in Oracle
导数、偏导数、方向导数
从零安装Redis
Leetcode:minimum_ depth_ of_ binary_ Tree solutions
Google Earth Engine(GEE)——Landsat 全球土地调查 1975年数据集
Have fun | latest progress of "spacecraft program" activities
QT Bluetooth: qbluetooth DeviceInfo
Redis introduction complete tutorial: client case analysis
Redis入门完整教程:客户端案例分析
Form validation of uniapp