#!/usr/bin/env python
# coding:utf-8
from PoboAPI import *
import datetime
import time
import numpy as np
from copy import *
import pandas as pd
#设定持仓细节数据表
#g.df = {}g.df = pd.DataFrame(columns = ['date','code','price','volume','stoploss','iv'])
print(type(g.df))
g.a = []
g.b = []
# 设定最大显示行数、列数为10000
pd.set_option('display.max_rows', 10000)
pd.set_option('display.max_columns', 10000)
pd.set_option('display.width', 10000)#获取合约剩余交易日期def stime(op):info1 = GetContractInfo(op)#获取合约信息kill = info1['行权到期日']#print (str(type(kill)))cutime = GetCurrentTime()#获取当前时间#调整时间格式if cutime.day < 10:cutim = str(cutime.year) + str(cutime.month) + '0' +str(cutime.day)elif cutime.month < 10:cutim = str(cutime.year) + '0' + str(cutime.month) +str(cutime.day)else: