搭建环境: centos7.5 Anaconda 3.6.4 tushare python talib及C基础库依赖 实现的代码如下: 1#!/usr/bin/env python 2# coding=utf8 3# =============================================================================== 4# Copyright (C) 2019 www.361way.com site All rights reserved. 5# 6# Filename :kdjall.py 7# Author :yangbk <
[email protected]> 8# Create Time :2019-07-17 17:53 9# Description : 10# =============================================================================== 11import requests 12import json 13import talib as ta 14import tushare as ts 15import pandas as pd 16def gettoken(corpid,corpsecret): 17 gettoken_url = 'https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=' + corpid + '&corpsecret=' + corpsecret 18 r = requests.get(gettoken_url) 19 request_json = r.json() 20 this_access_token = request_json['access_token'] 21 #print(this_access_token) 22 r.close() 23 return this_access_token 24def senddata(access_token,content): 25 send_url =……