当前位置: 首页 > news >正文

中英切换的网站咋做网络舆情监测适合女生嘛

中英切换的网站咋做,网络舆情监测适合女生嘛,群晖套件做网站,创建自己的博客网站吗Binance_interface APP 币本位合约交易-基础订单 Github地址PyTed量化交易研究院 量化交易研究群(VX) py_ted目录 Binance_interface APP 币本位合约交易-基础订单1. APP 币本位合约交易-基础订单函数总览2. 模型实例化3. 下单#xff08;API原始接口#xff09; set_orde…Binance_interface APP 币本位合约交易-基础订单 Github地址PyTed量化交易研究院 量化交易研究群(VX) py_ted目录 Binance_interface APP 币本位合约交易-基础订单1. APP 币本位合约交易-基础订单函数总览2. 模型实例化3. 下单API原始接口 set_order4. 查询订单API原始接口 get_order5. 查看当前挂单 get_orders_pending6. 查看当前开仓挂单 get_orders_pending_open7. 查看当前平仓挂单 get_orders_pending_close8. 等待订单成交 wait_order_FILLED9. 撤销订单API原始接口 cancel_order 1. APP 币本位合约交易-基础订单函数总览 方法解释set_order下单API原始接口get_order查询订单API原始接口get_orders_pending查看当前挂单get_orders_pending_open查看当前开仓挂单get_orders_pending_close查看当前平仓挂单wait_order_FILLED等待订单成交cancel_order撤销订单API原始接口 2. 模型实例化 from binance_interface.app import BinanceCM from binance_interface.app.utils import eprint import paux.date# 转发需搭建转发服务器可参考https://github.com/pyted/binance_resender proxy_host None key xxxx secret xxxxbinanceCM BinanceCM(keykey,secretsecret,proxy_hostproxy_host,timezoneAsia/Shanghai, ) trade binanceCM.trade3. 下单API原始接口 set_order set_order_result trade.set_order(symbolDOTUSD_PERP,sideBUY,typeLIMIT,price6.1,quantity1,positionSideLONG,timeInForceGTC, ) eprint(set_order_result)输出 {code: 200,data: {orderId: 7108734736,symbol: DOTUSD_PERP,pair: DOTUSD,status: NEW,clientOrderId: pPO9llcY29tIyoWJT3fYnS,price: 6.100,avgPrice: 0.000,origQty: 1,executedQty: 0,cumQty: 0,cumBase: 0,timeInForce: GTC,type: LIMIT,reduceOnly: False,closePosition: False,side: BUY,positionSide: LONG,stopPrice: 0,workingType: CONTRACT_PRICE,priceProtect: False,origType: LIMIT,updateTime: 1706193909383},msg: }4. 查询订单API原始接口 get_order orderId set_order_result[data][orderId] order_result trade.get_order(symbolDOTUSD_PERP,orderIdorderId, ) eprint(order_result)输出 {code: 200,data: {orderId: 7108734736,symbol: DOTUSD_PERP,pair: DOTUSD,status: NEW,clientOrderId: pPO9llcY29tIyoWJT3fYnS,price: 6.100,avgPrice: 0.000,origQty: 1,executedQty: 0,cumBase: 0,timeInForce: GTC,type: LIMIT,reduceOnly: False,closePosition: False,side: BUY,positionSide: LONG,stopPrice: 0,workingType: CONTRACT_PRICE,priceProtect: False,origType: LIMIT,time: 1706193909383,updateTime: 1706193909383},msg: }5. 查看当前挂单 get_orders_pending # 查询symbol 从start到end全部未成交订单 orders_pending_result trade.get_orders_pending(symbol, # 默认为空表示全部产品start2024-01-01 10:00:00, # 默认为空表示不限定订单的起始时间end2024-12-26, # 默认为空表示不限定订单的终止时间 ) eprint(orders_pending_result, length30)输出 {code: 200,data: [{orderId: 7108734736,symbol: DOTUSD_PERP,pair: DOTUSD,status: NEW,clientOrderId: pPO9llcY29tIyoWJT3fYnS,price: 6.100,avgPrice: 0,origQty: 1,executedQty: 0,cumBase: 0,timeInForce: GTC,type: LIMIT,reduceOnly: False,closePosition: False,side: BUY,positionSide: LONG,stopPrice: 0,workingType: CONTRACT_PRICE,priceProtect: False,origType: LIMIT,time: 1706193909383,updateTime: 1706193909383},{orderId: 70547715976,symbol: ETHUSD_PERP,pair: ETHUSD,status: NEW,clientOrderId: ios_xAkWbFbtGfP3W6nRPI3J,price: 2400,avgPrice: 0,origQty: 1,executedQty: 0,cumBase: 0,timeInForce: GTC,type: LIMIT,reduceOnly: False,closePosition: False,side: SELL,positionSide: SHORT,stopPrice: 0,workingType: CONTRACT_PRICE,priceProtect: False,origType: LIMIT,time: 1706193177536,updateTime: 1706193177536},{orderId: 70548864413,symbol: ETHUSD_PERP,pair: ETHUSD,status: NEW,clientOrderId: ios_H29bLqhYVMPyLC2k9tVt,price: 2100,avgPrice: 0,origQty: 1,executedQty: 0,cumBase: 0,timeInForce: GTC,type: LIMIT,reduceOnly: True,closePosition: False,side: BUY,positionSide: SHORT,stopPrice: 0,workingType: CONTRACT_PRICE,priceProtect: False,origType: LIMIT,time: 1706193876902,updateTime: 1706193876902},{orderId: 70547694568,symbol: ETHUSD_PERP,pair: ETHUSD,status: NEW,clientOrderId: ios_Qf3K1XXNtOayzl3M05Ek,price: 2000,avgPrice: 0,origQty: 1,executedQty: 0,cumBase: 0,timeInForce: GTC,type: LIMIT,reduceOnly: False,closePosition: False,side: BUY,positionSide: LONG,stopPrice: 0,workingType: CONTRACT_PRICE,priceProtect: False,origType: LIMIT,time: 1706193160778,updateTime: 1706193160778},{orderId: 70548673979,symbol: ETHUSD_PERP,pair: ETHUSD,status: NEW,clientOrderId: ios_NsHOBwSq1znyGgs0TDBz,price: 2400,avgPrice: 0,origQty: 1,executedQty: 0,cumBase: 0,timeInForce: GTC,type: LIMIT,reduceOnly: True,closePosition: False,side: SELL,positionSide: LONG,stopPrice: 0,workingType: CONTRACT_PRICE,priceProtect: False,origType: LIMIT,time: 1706193739701,updateTime: 1706193739701}],msg: }# 查询symbol 从start到end全部未成交订单 orders_pending_result trade.get_orders_pending(symbolETHUSD_PERP, # 默认为空表示全部产品start2024-01-01 10:00:00, # 默认为空表示不限定订单的起始时间end2024-12-26, # 默认为空表示不限定订单的终止时间 ) eprint(orders_pending_result, length30)输出 {code: 200,data: [{orderId: 70547715976,symbol: ETHUSD_PERP,pair: ETHUSD,status: NEW,clientOrderId: ios_xAkWbFbtGfP3W6nRPI3J,price: 2400,avgPrice: 0,origQty: 1,executedQty: 0,cumBase: 0,timeInForce: GTC,type: LIMIT,reduceOnly: False,closePosition: False,side: SELL,positionSide: SHORT,stopPrice: 0,workingType: CONTRACT_PRICE,priceProtect: False,origType: LIMIT,time: 1706193177536,updateTime: 1706193177536},{orderId: 70548673979,symbol: ETHUSD_PERP,pair: ETHUSD,status: NEW,clientOrderId: ios_NsHOBwSq1znyGgs0TDBz,price: 2400,avgPrice: 0,origQty: 1,executedQty: 0,cumBase: 0,timeInForce: GTC,type: LIMIT,reduceOnly: True,closePosition: False,side: SELL,positionSide: LONG,stopPrice: 0,workingType: CONTRACT_PRICE,priceProtect: False,origType: LIMIT,time: 1706193739701,updateTime: 1706193739701},{orderId: 70547694568,symbol: ETHUSD_PERP,pair: ETHUSD,status: NEW,clientOrderId: ios_Qf3K1XXNtOayzl3M05Ek,price: 2000,avgPrice: 0,origQty: 1,executedQty: 0,cumBase: 0,timeInForce: GTC,type: LIMIT,reduceOnly: False,closePosition: False,side: BUY,positionSide: LONG,stopPrice: 0,workingType: CONTRACT_PRICE,priceProtect: False,origType: LIMIT,time: 1706193160778,updateTime: 1706193160778},{orderId: 70548864413,symbol: ETHUSD_PERP,pair: ETHUSD,status: NEW,clientOrderId: ios_H29bLqhYVMPyLC2k9tVt,price: 2100,avgPrice: 0,origQty: 1,executedQty: 0,cumBase: 0,timeInForce: GTC,type: LIMIT,reduceOnly: True,closePosition: False,side: BUY,positionSide: SHORT,stopPrice: 0,workingType: CONTRACT_PRICE,priceProtect: False,origType: LIMIT,time: 1706193876902,updateTime: 1706193876902}],msg: }6. 查看当前开仓挂单 get_orders_pending_open # 参数positionSide默认值为表示全部多单和空单 orders_pending_open_result trade.get_orders_pending_open(symbolETHUSD_PERP, ) eprint(orders_pending_open_result, length30)输出 {code: 200,data: [{orderId: 70547715976,symbol: ETHUSD_PERP,pair: ETHUSD,status: NEW,clientOrderId: ios_xAkWbFbtGfP3W6nRPI3J,price: 2400,avgPrice: 0,origQty: 1,executedQty: 0,cumBase: 0,timeInForce: GTC,type: LIMIT,reduceOnly: False,closePosition: False,side: SELL,positionSide: SHORT,stopPrice: 0,workingType: CONTRACT_PRICE,priceProtect: False,origType: LIMIT,time: 1706193177536,updateTime: 1706193177536},{orderId: 70547694568,symbol: ETHUSD_PERP,pair: ETHUSD,status: NEW,clientOrderId: ios_Qf3K1XXNtOayzl3M05Ek,price: 2000,avgPrice: 0,origQty: 1,executedQty: 0,cumBase: 0,timeInForce: GTC,type: LIMIT,reduceOnly: False,closePosition: False,side: BUY,positionSide: LONG,stopPrice: 0,workingType: CONTRACT_PRICE,priceProtect: False,origType: LIMIT,time: 1706193160778,updateTime: 1706193160778}],msg: }# positionSideSHORT 限制结果为空单 orders_pending_open_result trade.get_orders_pending_open(symbolETHUSD_PERP,positionSideSHORT, ) eprint(orders_pending_open_result, length30)输出 {code: 200,data: [{orderId: 70547715976,symbol: ETHUSD_PERP,pair: ETHUSD,status: NEW,clientOrderId: ios_xAkWbFbtGfP3W6nRPI3J,price: 2400,avgPrice: 0,origQty: 1,executedQty: 0,cumBase: 0,timeInForce: GTC,type: LIMIT,reduceOnly: False,closePosition: False,side: SELL,positionSide: SHORT,stopPrice: 0,workingType: CONTRACT_PRICE,priceProtect: False,origType: LIMIT,time: 1706193177536,updateTime: 1706193177536}],msg: }7. 查看当前平仓挂单 get_orders_pending_close # 参数positionSide默认值为表示全部多单和空单 orders_pending_close_result trade.get_orders_pending_close(symbolETHUSD_PERP, ) eprint(orders_pending_close_result, length30)输出 {code: 200,data: [{orderId: 70548673979,symbol: ETHUSD_PERP,pair: ETHUSD,status: NEW,clientOrderId: ios_NsHOBwSq1znyGgs0TDBz,price: 2400,avgPrice: 0,origQty: 1,executedQty: 0,cumBase: 0,timeInForce: GTC,type: LIMIT,reduceOnly: True,closePosition: False,side: SELL,positionSide: LONG,stopPrice: 0,workingType: CONTRACT_PRICE,priceProtect: False,origType: LIMIT,time: 1706193739701,updateTime: 1706193739701},{orderId: 70548864413,symbol: ETHUSD_PERP,pair: ETHUSD,status: NEW,clientOrderId: ios_H29bLqhYVMPyLC2k9tVt,price: 2100,avgPrice: 0,origQty: 1,executedQty: 0,cumBase: 0,timeInForce: GTC,type: LIMIT,reduceOnly: True,closePosition: False,side: BUY,positionSide: SHORT,stopPrice: 0,workingType: CONTRACT_PRICE,priceProtect: False,origType: LIMIT,time: 1706193876902,updateTime: 1706193876902}],msg: }# positionSideSHORT 限制结果为空单 orders_pending_close_result trade.get_orders_pending_close(symbolETHUSD_PERP,positionSideSHORT, ) eprint(orders_pending_close_result, length30)输出 {code: 200,data: [{orderId: 70548864413,symbol: ETHUSD_PERP,pair: ETHUSD,status: NEW,clientOrderId: ios_H29bLqhYVMPyLC2k9tVt,price: 2100,avgPrice: 0,origQty: 1,executedQty: 0,cumBase: 0,timeInForce: GTC,type: LIMIT,reduceOnly: True,closePosition: False,side: BUY,positionSide: SHORT,stopPrice: 0,workingType: CONTRACT_PRICE,priceProtect: False,origType: LIMIT,time: 1706193876902,updateTime: 1706193876902}],msg: }8. 等待订单成交 wait_order_FILLED orderId set_order_result[data][orderId] symbol set_order_result[data][symbol] # 堵塞等待订单完全成交如果超时后仍未成交返回订单数据 wait_order_filled_result trade.wait_order_FILLED(symbolsymbol,orderIdorderId,timeout5, ) eprint(wait_order_filled_result, length30)输出 {code: 200,data: {orderId: 7108734736,symbol: DOTUSD_PERP,pair: DOTUSD,status: NEW,clientOrderId: pPO9llcY29tIyoWJT3fYnS,price: 6.100,avgPrice: 0.000,origQty: 1,executedQty: 0,cumBase: 0,timeInForce: GTC,type: LIMIT,reduceOnly: False,closePosition: False,side: BUY,positionSide: LONG,stopPrice: 0,workingType: CONTRACT_PRICE,priceProtect: False,origType: LIMIT,time: 1706193909383,updateTime: 1706193909383},msg: }9. 撤销订单API原始接口 cancel_order orderId set_order_result[data][orderId] symbol set_order_result[data][symbol]cancel_order_result trade.cancel_order(symbolsymbol,orderIdorderId, ) eprint(cancel_order_result, length30)输出 {code: 200,data: {orderId: 7108734736,symbol: DOTUSD_PERP,pair: DOTUSD,status: CANCELED,clientOrderId: pPO9llcY29tIyoWJT3fYnS,price: 6.100,avgPrice: 0.000,origQty: 1,executedQty: 0,cumQty: 0,cumBase: 0,timeInForce: GTC,type: LIMIT,reduceOnly: False,closePosition: False,side: BUY,positionSide: LONG,stopPrice: 0,workingType: CONTRACT_PRICE,priceProtect: False,origType: LIMIT,updateTime: 1706193919012},msg: }
http://www.zqtcl.cn/news/538590/

相关文章:

  • 教务处网站建设专业做鞋子的网站吗
  • 梦幻创意网站建设成都做网站设计哪家便宜
  • 织梦网站栏目修改教程丝绸之路网站建设意义
  • 如何知道一个网站是谁做的北京装饰公司前十名
  • 杭州网站建设哪个平台好visualstudio 做网站
  • 广州站是哪个站h5建站系统
  • 网站首页网址应该有对应的域名南京高端模板建站
  • 自己做的网站竞价优化怎么做网站流量赚钱吗
  • 人力资源网站建设mip网站模板
  • 太原市住房和城乡建设部网站网站 备案 换空间
  • 怎么做网站备份网站运营数据周报表怎么做
  • 度更新网站做详情页网站
  • 酷炫网站模板wordpress自动发货插件
  • 网站做多个镜像wordpress无法显示向导
  • 交易类网站建设费用工厂招工最新招聘信息
  • 俄语网站建设网站建设的实训报告
  • 朝阳市做网站的公司wordpress msg
  • 企业管理系统免费版seo关于网站
  • 几度设计网站设计制作平板电脑支架
  • 游戏设计 网站上海中企动力做网站多少钱
  • flash 开发的网站网上国网app推广经验
  • pyhton可以做网站吗文章wordpress
  • 省住房城乡建设厅门户网站电子商务网站建设用什么软件
  • 怎么给自己的网站做模版企业网站开发外包
  • 哪家可以做网站东莞网站建设少儿托管
  • 最好的网站建设公司排名生物技术网站开发
  • 网站建设经验大总结不良人网页设计怎么做
  • 宁波市余姚建设局网站学做网站要代码
  • 戴尔公司网站开发的经营目标贵州省铜仁市城乡建设局网站
  • 商务网站建设简答题及答案网站备案 域名证书