GithubHelp home page GithubHelp logo

flasktest's Introduction

接口说明

host:47.105.74.100:5000 所有请求方法均为POST

挂单指令

url:/send_order 传入参数示例: {'direction':'open', 'localid': '123456', 'long_price': 2.3, 'long_amount': 1, 'short_price': 2.259, 'short_amount': 1} 说明: 参数名 类型 备注 direction string open:开仓,close:平仓 localid string 本地使用的ID long_price float 多单价格 long_amount float 多单数量(张) short_price float 空单价格 short_amount float 空单数量(张) 返回结果示例: {"buy_price":"2.259","sell_price":"2.3","status":true}

撤单

url:/cancel_order 传入参数示例: {'localid': '123456'} //localid必须是用send_order接口下过单的 返回结果示例: {"status":true}

查单

url:/check_order 传入参数示例: {'localid': '123456'} //localid必须是用send_order接口下过单的 返回结果示例: { "buy_order":{ "amount":null, "filled_amount":4, "filled_price":2, "order_id":"13213246546", "price":null }, "sell_order":{ "amount":null, "filled_amount":6, "filled_price":2, "order_id":"13213246546", "price":null }, "status":true }

查看收益

url:/check_profit 传入参数示例: {'localid': '123456'} //localid必须是用send_order接口下过单的 {"order_id":"123456","profit":0.0,"status":true}

挂单转市单

url:/maker2taker 传入参数示例: {'localid': '123456'} //localid必须是用send_order接口下过单的 {"status":true}

修单

url:/fix_order 传入参数示例: {'localid': '123456'} //localid必须是用send_order接口下过单的 {"status":true}

修改市场单

url:/fix_market_order 传入参数示例: {'localid': '123456'} //localid必须是用send_order接口下过单的 {"status":true}

flasktest's People

Contributors

gavinc-cn avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.