コード例 #1
0
 def f5():
     i = 5  # 菜油/菜粕
     min_time, max_time, price1, price2, latest_diff, pre_diff, diff_10, diff_20, diff_30, min_diff, percentile5, mid_diff, percentile95, max_diff = cf.difference(
         'oi0', 'rm0', method='divide')
     insert_table1(i, min_time, max_time, price1, price2, latest_diff,
                   pre_diff, diff_10, diff_20, diff_30, min_diff,
                   percentile5, mid_diff, percentile95, max_diff)
コード例 #2
0
 def f1():
     i = 1  # 豆粕-菜粕
     min_time, max_time, price1, price2, latest_diff, pre_diff, diff_10, diff_20, diff_30, min_diff, percentile5, mid_diff, percentile95, max_diff = cf.difference(
         'm0', 'rm0', method='minus')
     insert_table1(i, min_time, max_time, price1, price2, latest_diff,
                   pre_diff, diff_10, diff_20, diff_30, min_diff,
                   percentile5, mid_diff, percentile95, max_diff)
コード例 #3
0
 def f4():
     i = 4  # 菜油-棕榈油
     min_time, max_time, price1, price2, latest_diff, pre_diff, diff_10, diff_20, diff_30, min_diff, percentile5, mid_diff, percentile95, max_diff = cf.difference(
         'oi0', 'p0', method='minus')
     insert_table1(i, min_time, max_time, price1, price2, latest_diff,
                   pre_diff, diff_10, diff_20, diff_30, min_diff,
                   percentile5, mid_diff, percentile95, max_diff)
コード例 #4
0
 def f14():
     i = 14  # 金/银
     min_time, max_time, price1, price2, latest_diff, pre_diff, diff_10, diff_20, diff_30, min_diff, percentile5, mid_diff, percentile95, max_diff = cf.difference(
         'au0', 'ag0', method='divide', quant1=15)
     insert_table1(i, min_time, max_time, price1, price2, latest_diff,
                   pre_diff, diff_10, diff_20, diff_30, min_diff,
                   percentile5, mid_diff, percentile95, max_diff)
コード例 #5
0
 def f0():
     i = 0  # 豆油/豆粕
     min_time, max_time, price1, price2, latest_diff, pre_diff, diff_10, diff_20, diff_30, min_diff, percentile5, mid_diff, percentile95, max_diff = cf.difference(
         'y0', 'm0', method='divide')
     insert_table1(i, min_time, max_time, price1, price2, latest_diff,
                   pre_diff, diff_10, diff_20, diff_30, min_diff,
                   percentile5, mid_diff, percentile95, max_diff)
コード例 #6
0
 def f13():
     i = 13  # 铜/锌
     min_time, max_time, price1, price2, latest_diff, pre_diff, diff_10, diff_20, diff_30, min_diff, percentile5, mid_diff, percentile95, max_diff = cf.difference(
         'cu0', 'zn0', method='divide')
     insert_table1(i, min_time, max_time, price1, price2, latest_diff,
                   pre_diff, diff_10, diff_20, diff_30, min_diff,
                   percentile5, mid_diff, percentile95, max_diff)
コード例 #7
0
 def f11():
     i = 11  # PP-3MA
     min_time, max_time, price1, price2, latest_diff, pre_diff, diff_10, diff_20, diff_30, min_diff, percentile5, mid_diff, percentile95, max_diff = cf.difference(
         'pp0', 'ma0', method='minus', quant2=3)
     insert_table1(i, min_time, max_time, price1, price2, latest_diff,
                   pre_diff, diff_10, diff_20, diff_30, min_diff,
                   percentile5, mid_diff, percentile95, max_diff)
コード例 #8
0
 def f10():
     i = 10  # L-PP
     min_time, max_time, price1, price2, latest_diff, pre_diff, diff_10, diff_20, diff_30, min_diff, percentile5, mid_diff, percentile95, max_diff = cf.difference(
         'l0', 'pp0', method='minus')
     insert_table1(i, min_time, max_time, price1, price2, latest_diff,
                   pre_diff, diff_10, diff_20, diff_30, min_diff,
                   percentile5, mid_diff, percentile95, max_diff)
コード例 #9
0
 def f9():
     i = 9  # 焦炭/焦煤
     min_time, max_time, price1, price2, latest_diff, pre_diff, diff_10, diff_20, diff_30, min_diff, percentile5, mid_diff, percentile95, max_diff = cf.difference(
         'j0', 'jm0', method='divide')
     insert_table1(i, min_time, max_time, price1, price2, latest_diff,
                   pre_diff, diff_10, diff_20, diff_30, min_diff,
                   percentile5, mid_diff, percentile95, max_diff)
コード例 #10
0
 def f8():
     i = 8  # 螺纹钢/铁矿石
     min_time, max_time, price1, price2, latest_diff, pre_diff, diff_10, diff_20, diff_30, min_diff, percentile5, mid_diff, percentile95, max_diff = cf.difference(
         'rb0', 'i0', method='divide')
     insert_table1(i, min_time, max_time, price1, price2, latest_diff,
                   pre_diff, diff_10, diff_20, diff_30, min_diff,
                   percentile5, mid_diff, percentile95, max_diff)