Type/to search

现货指数平衡策略 v1.1(曾实盘跑过一段时间,现在疑似有bug,因为不用了,懒得改)

Common strategy
Created: 2021-11-11 01:51:12
Last modified: 5 years ago
8
Follow
21
Followers

指数平衡策略python版

Source
Python

import json
import time
import requests
import math

account = 0  
updateProfitTime = 0 
tradeInfo = {} 
accountAssets = {}
ticker = {}
runtimeData = {}
Strategy parameters
Strategy parameters
交易对
下单滑点
各个交易对价值占比
差值达到多少进行平衡
休眠时间s
收益更新时间s
初始资金
Comment
All comments (2)

    这个可以直接用么 实盘展示的那个币安币本位平衡网格 是用的这个策略么

    5 years ago

    这个我跑过一段时间,但是现在好像有bug。。围观的那个和这个思路不大一样

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