通行参数:Appsecret//Appkey//agentId//钉钉管理后台把公网IP加入白名单
//通行参数获取access_通达信期货行情接口,token
public static string GetToken()
{
IDingTalkClient client = new DefaultDingTalkClient('https://oapi.dingtalk.com/get通达信期货行情接口,token');
OapiGet通达信期货行情接口,tokenRequest req = new OapiGet通达信期货行情接口,tokenRequest();
req.Appkey = Appkey;
req.Appsecret = Appsecret;
req.SetHttpMethod('GET');
OapiGet通达信期货行情接口,tokenResponse rsp = client.Execute(req);
CGetToken 通达信期货行情接口,token_json = JsonConvert.DeserializeObject(rsp.Body);
return 通达信期货行情接口,token_json.access_通达信期货行情接口,token;
}
钉钉SDK及在线测试接口地址:https://open-dev.dingtalcom/apiExplorer#/
钉钉接口调用流程:通过企业唯一通行参数获取access_通达信期货行情接口,token==》调用SDK里相应的接口方法获取json数据==>序列化json数据存入数据库
借口SDK可到钉钉开放平台官网下载
文章为作者独立观点,不代表 股票程序化软件自动交易接口观点