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.
41 lines
1.4 KiB
41 lines
1.4 KiB
using Binance.TradeRobot.Business;
|
|
using Binance.TradeRobot.Model.Dto;
|
|
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Binance.TradeRobot.API.Controllers
|
|
{
|
|
[Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)]
|
|
public class OrderController : BaseApiController
|
|
{
|
|
private OrderBusiness orderBusiness;
|
|
public OrderController(OrderBusiness orderBusiness)
|
|
{
|
|
this.orderBusiness = orderBusiness;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取现货/逐仓杠杆订单记录
|
|
/// </summary>
|
|
/// <param name="queryOrderRequest"></param>
|
|
/// <returns></returns>
|
|
[HttpPost("{robotId}")]
|
|
public SpotOrderPageResponse GetSpotOrderList([FromBody] QueryOrderRequest queryOrderRequest)
|
|
{
|
|
return orderBusiness.GetSpotOrderList(queryOrderRequest);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取执行日志记录
|
|
/// </summary>
|
|
/// <param name="queryLogRequest"></param>
|
|
/// <returns></returns>
|
|
[HttpPost("{robotId}")]
|
|
public ExecutionLogPageResponse GetExecutionLogList([FromBody] QueryLogRequest queryLogRequest)
|
|
{
|
|
return orderBusiness.GetExecutionLogList(queryLogRequest);
|
|
}
|
|
}
|
|
}
|
|
|