• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
金记缘
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2 3 4 5 下一页
2023年6月17日
十、区块量化 通用文件 微信接口
摘要: 1、首先申请开通微信企业号 2、新建一个应用 3、把应用id、企业Id、Secret 替换以下weixin.py文件 # -*- coding: utf-8 -*-import requestsimport jsonimport timeimport sysAppId = "1000002" # 应 阅读全文
posted @ 2023-06-17 21:48 一生所悟 阅读(121) 评论(0) 推荐(0)
九、区块量化 binance 合约操作文件续
摘要: def create_order(symbol='EOSUSDT', side='BUY', positionside='LONG', ordtype='LIMIT', price=Decimal('0'), quantity='1', message=''): """ 全仓合约市价下单 @para 阅读全文
posted @ 2023-06-17 21:34 一生所悟 阅读(203) 评论(0) 推荐(0)
八、区块量化 binance 合约操作文件
摘要: 新增cross_order.py文件 # -*- coding: utf-8 -*-import pandas as pdfrom binance import Client, Configimport timeimport weixinfrom binance.enums import *from 阅读全文
posted @ 2023-06-17 21:31 一生所悟 阅读(217) 评论(0) 推荐(0)
七、区块量化 binance 接口
摘要: 1、接口文档网址:https://binance-docs.github.io/apidocs/spot/cn/ 2、安装python工具:pip3 install python-binance 3、下载https://github.com/sammchardy/python-binance 4、解 阅读全文
posted @ 2023-06-17 21:27 一生所悟 阅读(496) 评论(0) 推荐(0)
2023年6月16日
六、区块量化 RSI策略
摘要: 1、新增cross_rsi_order.py # -*- coding: utf-8 -*-import talibimport cross_order as orderimport timeRSI_PERIODS = 14 # RSI计算周期RSI_OVER_SOLD_THRESH = 30 # 阅读全文
posted @ 2023-06-16 17:32 一生所悟 阅读(144) 评论(0) 推荐(0)
五、区块量化 boll轨道策略
摘要: 1、新增cross_boll_order.py # -*- coding: utf-8 -*-import talibimport cross_order as orderimport timeBOLL_N = 20 # BBands参数NBOLL_M = 2 # BBands参数Mdef main 阅读全文
posted @ 2023-06-16 17:28 一生所悟 阅读(151) 评论(0) 推荐(0)
二、区块量化 okx 配置修改
摘要: 1、用pycharm软件打开python-okx-master文件 2、修改Account.py、MarketData.py、Trade.py文件 把debug = True 修改为debug=False 3、新增config.py文件 class Config: OKEX_API_KEY = '你 阅读全文
posted @ 2023-06-16 17:13 一生所悟 阅读(542) 评论(0) 推荐(0)
一、区块量化 okx接口
摘要: 1、搭建liunx环境 可以是centos7 2、安装python3或anaconda3 3、安装接口 pip3 install python-okx 4、下载接口文件 https://github.com/okxapi/python-okx 5、解压python-okx-master 除了okx文 阅读全文
posted @ 2023-06-16 17:05 一生所悟 阅读(558) 评论(0) 推荐(0)
三、区块量化 okx 合约操作文件
摘要: 1、打开新增的cross_order.py 文件 # -*- coding: utf-8 -*- import pandas as pd import okx.Account as account import okx.Trade as trade import okx.MarketData as 阅读全文
posted @ 2023-06-16 16:47 一生所悟 阅读(440) 评论(0) 推荐(0)
四、区块量化 okx 合约操作文件续
摘要: def create_order(symbol='EOS-USDT-SWAP', side='buy', positionside='long', ordtype='limit', price='0', quantity='1', tpTriggerPx='', tpOrdPx='', slTrig 阅读全文
posted @ 2023-06-16 16:45 一生所悟 阅读(450) 评论(0) 推荐(0)
上一页 1 2 3 4 5 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3