Type/to search

简单的做市对冲功能

Market-maker
0
Follow
8
Followers

小平台自己做市,降低风险,对冲到大交易所
策略思想:
死循环轮询账户资产余额,将变动的币对冲到火币
同时发送钉钉与微信通知给管理员
使用sqlite保存历史账户余额,为其余策略服务,方便财务管理

Source
Python
# -*- coding: UTF-8 -*-
import time
from api import *
from Huobiapi import *
import sqlite3

def wechatmsg(text,desp):
	server = 'https://sc.ftqq.com/xxxxxx.send'
	payload = {'text':text,'desp':desp}
	requests.post(server,params = payload)

def dingmsg(title,msg):
Comment
All comments (1)

    import time
    from api import * , 运行时出错了。这个API 库找不到。
    Traceback (most recent call last): File "<string>", line 1481, in Run File "<string>", line 3, in <module> ModuleNotFoundError: No module named 'api'

    5 years ago
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)