dcc
2024-06-07 4a31519bd6d5db765556664042fdc0a5dcc63cf0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import Axios from "@/utils/http";
//获取所有币种信息,根据不同type区分
//"forex->外汇,commodities->大宗商品,指数/ETF->indices,  A-stocks->A股,  HK-stocks->港股.US-stocks->美股,cryptos->虚拟货币
function currencyDetails(data) {
  return Axios.fetch("/wap/api/item!list.action", data);
}
 
// 获取币种的实时数据,比如价格和涨跌幅
// https://enjdhdg.site/wap/api/doc.html#/%E5%A4%96%E6%B1%87%E7%AE%A1%E7%90%86%E5%B9%B3%E5%8F%B0/%E5%AE%9E%E6%97%B6%E8%A1%8C%E6%83%85%E6%95%B0%E6%8D%AE/getRealtimeUsingGET
function getRealtime(data) {
  return Axios.fetch("/wap/api/hobi!getRealtime.action", data);
}
 
//币币交易买入开仓页面参数
function BuyOpenView(data) {
  return Axios.fetch("/wap/api/exchangeapplyorder!openview.action", data);
}
 
//币币交易卖出开仓页面参数
function SellOpenView(data) {
  return Axios.fetch("/wap/api/exchangeapplyorder!closeview.action", data);
}
 
//获取可得数量
function getbuySellFee(data) {
  return Axios.fetch("/wap/api/exchangeapplyorder!buy_and_sell_fee.action", data);
}
 
//币币买入
function currencyBuy(data) {
  return Axios.fetch("/wap/api/exchangeapplyorder!open.action", data);
}
 
//币币卖出
function currencySell(data) {
  return Axios.fetch("/wap/api/exchangeapplyorder!close.action", data);
}
 
//币币交易记录,type= "forex->外汇,commodities->大宗商品,指数/ETF->indices,  A-stocks->A股,  HK-stocks->港股.US-stocks->美股,cryptos->虚拟货币
function currencyTradeRecord(data) {
  return Axios.fetch("/wap/api/exchangeapplyorder!list.action", data);
}
 
//钱包账户资产
function currencyPaypal(data) {
  return Axios.fetch("/wap/api/assets!getAll.action", data);
}
 
//撤销当前委托单
function cancelCurrencyOrder(data) {
  return Axios.fetch("/wap/api/exchangeapplyorder!cancel.action", data);
}
//加入自选币种
function addItemUserOptiona(data) {
  return Axios.fetch("/wap/api/itemUserOptional!add.action", data);
}
//查询自选
function getItemOptionalStatus() {
  return Axios.fetch("/wap/api/itemUserOptional!list.action");
}
//删除自选
function deleteItemUserOptiona(data) {
  return Axios.fetch("/wap/api/itemUserOptional!delete.action", data);
}
 
//查询自选2
function getItemOptionalStatus2(data) {
  return Axios.fetch("/wap/api/itemUserOptional!list.action", data);
}
 
export default {
  currencyDetails,
  getRealtime,
  BuyOpenView,
  SellOpenView,
  getbuySellFee,
  currencyBuy,
  currencySell,
  currencyTradeRecord,
  cancelCurrencyOrder,
  currencyPaypal,
  addItemUserOptiona,
  getItemOptionalStatus,
  deleteItemUserOptiona,
  getItemOptionalStatus2,
};