import request from "@/utils/request"

/** 日度行情 — 分页列表 */
export function listMarketQuote(query) {
  return request({
    url: "/tradeMarket/marketQuote/list",
    method: "get",
    params: query
  })
}

/** 详情 */
export function getMarketQuote(id) {
  return request({
    url: "/tradeMarket/marketQuote/" + id,
    method: "get"
  })
}

/** 新增 */
export function addMarketQuote(data) {
  return request({
    url: "/tradeMarket/marketQuote",
    method: "post",
    data
  })
}

/** 修改 */
export function updateMarketQuote(data) {
  return request({
    url: "/tradeMarket/marketQuote",
    method: "put",
    data
  })
}

/** 删除 */
export function delMarketQuote(ids) {
  return request({
    url: "/tradeMarket/marketQuote/" + ids,
    method: "delete"
  })
}

/** 渠道（正常状态交易市场）下拉 */
export function listTradeMarketOptions() {
  return request({
    url: "/tradeMarket/marketQuote/tradeMarketOptions",
    method: "get"
  })
}
