Browse Source

修复swagger错误

master
shanji 3 years ago
parent
commit
a9af2931e7
  1. 6
      Binance.TradeRobot.API/Binance.TradeRobot.API.xml
  2. 1
      Binance.TradeRobot.API/Controllers/RobotController.cs
  3. 5
      Binance.TradeRobot.API/Program.cs
  4. 2
      Binance.TradeRobot.API/Properties/launchSettings.json
  5. 8
      Binance.TradeRobot.Business/Binance.TradeRobot.Business.xml
  6. 95
      Binance.TradeRobot.Model/Binance.TradeRobot.Model.xml

6
Binance.TradeRobot.API/Binance.TradeRobot.API.xml

@ -43,6 +43,12 @@
</summary>
<param name="addD21PolicyRobotRequest"></param>
</member>
<member name="M:Binance.TradeRobot.API.Controllers.RobotController.GetD21PolicyRobotList">
<summary>
获取动2.1机器人列表
</summary>
<returns></returns>
</member>
<member name="M:Binance.TradeRobot.API.Controllers.UserController.Login(Binance.TradeRobot.Model.Dto.LoginRequest)">
<summary>
用户登录

1
Binance.TradeRobot.API/Controllers/RobotController.cs

@ -31,6 +31,7 @@ namespace Binance.TradeRobot.API.Controllers
/// 创建动2.1策略机器人
/// </summary>
/// <param name="addD21PolicyRobotRequest"></param>
[HttpPost]
public void AddD21PolicyRobot([FromBody] AddD21PolicyRobotRequest addD21PolicyRobotRequest)
{
robotBusiness.AddD21PolicyRobot(addD21PolicyRobotRequest);

5
Binance.TradeRobot.API/Program.cs

@ -18,6 +18,11 @@ namespace Binance.TradeRobot.API
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureAppConfiguration(builder =>
{
if (args != null && args.Length > 0)
builder.AddCommandLine(args);
})
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();

2
Binance.TradeRobot.API/Properties/launchSettings.json

@ -21,7 +21,7 @@
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "",
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"applicationUrl": "http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}

8
Binance.TradeRobot.Business/Binance.TradeRobot.Business.xml

@ -20,6 +20,14 @@
<param name="exchangeAPIKey"></param>
<exception cref="T:Binance.TradeRobot.Model.Base.BusinessException"></exception>
</member>
<member name="M:Binance.TradeRobot.Business.RobotBusiness.AddRobotWithTran(Binance.TradeRobot.Model.Dto.AddRobotRequest,System.Data.Common.DbTransaction)">
<summary>
添加机器人和账户
</summary>
<param name="addRobotRequest"></param>
<param name="tran"></param>
<returns>机器人Id</returns>
</member>
<member name="M:Binance.TradeRobot.Business.RobotBusiness.AddPyramidPolicyRobot(Binance.TradeRobot.Model.Dto.AddPyramidPolicyRobotRequest)">
<summary>
添加金字塔策略机器人

95
Binance.TradeRobot.Model/Binance.TradeRobot.Model.xml

@ -109,26 +109,6 @@
信号周期 1m=0,3m=1,5m=2,15m=3,30m=4,1h=5,2h=6,4h=7,6h=8,8h=9,12h=10,1d=11,3d=12,1w=13,1M=14
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Db.ExchangeAccount.BusinessType">
<summary>
业务类型
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Db.ExchangeAccount.LoginName">
<summary>
账号登录名
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Db.ExchangeAccount.TradePolicy">
<summary>
交易策略
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Db.ExchangeAPIKey.AccountId">
<summary>
交易所账号Id
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Db.LoanOrder.ExchangeId">
<summary>
交易所Id
@ -254,6 +234,71 @@
运行时长(s)
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Db.Robot.ClosePositionCount">
<summary>
平仓次数
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Db.Robot.SoptCurrentcyAmount">
<summary>
现货/杠杆持仓金额
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Db.Robot.SpotCurrencyQuantity">
<summary>
现货/杠杆持仓数量
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Db.Robot.TotalProfit">
<summary>
总收益
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Db.Robot.WinCount">
<summary>
盈利次数
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Db.Robot.LoanAmount">
<summary>
总借币金额
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Db.Robot.D21ExecutionMode">
<summary>
执行模式
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Db.Robot.D21IsEnabledIncreasePurchase">
<summary>
是否开启增购
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Db.Robot.D21IsEnableRemedyForErrorCrossSignal">
<summary>
是否开启错误信号补救
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Db.Robot.D21MaxFollowPurchaseRatio">
<summary>
最大追高比例
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Db.Robot.D21PeriodicSignal">
<summary>
信号周期
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Db.Robot.D21Position">
<summary>
仓位
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Db.Robot.D21StopLossRatio">
<summary>
止损比例
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Db.RobotAccount.ClosePositionCount">
<summary>
平仓次数
@ -284,6 +329,11 @@
总借币金额
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Db.RobotAccount.SpotCurrencyAcgPrice">
<summary>
现货持仓均价
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Db.User.CostAmount">
<summary>
投资本金
@ -439,6 +489,11 @@
逐仓杠杆USDT资产
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Dto.RobotResponse.RunningTime">
<summary>
运行时长(s)
</summary>
</member>
<member name="P:Binance.TradeRobot.Model.Dto.UserAccountFundChangeRecordResponse.UserName">
<summary>
资金变更用户名

Loading…
Cancel
Save