You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
959 B
30 lines
959 B
3 years ago
|
using Binance.TradeRobot.Business;
|
||
|
using Binance.TradeRobot.Model.Dto;
|
||
|
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
||
|
using Microsoft.AspNetCore.Authorization;
|
||
|
using Microsoft.AspNetCore.Mvc;
|
||
|
|
||
|
namespace Binance.TradeRobot.API.Controllers
|
||
|
{
|
||
|
[Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)]
|
||
|
public class RobotController : BaseApiController
|
||
|
{
|
||
|
private RobotBusiness robotBusiness;
|
||
|
|
||
|
public RobotController(RobotBusiness robotBusiness)
|
||
|
{
|
||
|
this.robotBusiness = robotBusiness;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 创建金字塔策略合约机器人
|
||
|
/// </summary>
|
||
|
/// <param name="addPyramidPolicyRobotRequest"></param>
|
||
|
[HttpPost]
|
||
|
public void AddPyramidPolicyRobot([FromBody] AddPyramidPolicyRobotRequest addPyramidPolicyRobotRequest)
|
||
|
{
|
||
|
robotBusiness.AddPyramidPolicyRobot(addPyramidPolicyRobotRequest);
|
||
|
}
|
||
|
}
|
||
|
}
|