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
| import { httpJson } from "@/request/http";
|
| //币币交易-买入-开仓页面参数
| const tradeBuyToken = (params) => {
| return httpJson({
| url: "/api/exchangeapplyorder!openview.action",
| method: "get",
| isLoading: false
| }, params)
| };
|
| //币币交易-卖出-开仓页面参数
| const tradeSellToken = (params) => {
| return httpJson({
| url: "/api/exchangeapplyorder!closeview.action",
| method: "get",
| isLoading: false
| }, params)
| };
|
|
| //币币交易-买入
| const tradeBuy = (params) => {
| return httpJson({
| url: "/api/exchangeapplyorder!open.action",
| method: "get",
| isLoading: false
| }, params)
| };
|
| //币币交易-卖出
| const tradeSell= (params) => {
| return httpJson({
| url: "/api/exchangeapplyorder!close.action",
| method: "get",
| isLoading: false
| }, params)
| };
|
| //币币交易-交易记录
| const tradeRecord = (params) => {
| return httpJson({
| url: "/api/exchangeapplyorder!list.action",
| method: "get",
| isLoading: false
| }, params)
| };
|
| //币币交易-撤单
| const tradeCancel = (params) => {
| return httpJson({
| url: "/api/exchangeapplyorder!cancel.action",
| method: "get",
| isLoading: true
| }, params)
| };
|
| //币币交易-订单详情
| const tradeDetail= (params) => {
| return httpJson({
| url: "/api/exchangeapplyorder!get.action",
| method: "get",
| isLoading: true
| }, params)
| };
|
|
| //钱包账户资产(币对)
| const getPairs = (params) => {
| return httpJson({
| url: "/api/wallet!getPairs.action",
| method: "get",
| isLoading: false
| }, params)
| };
|
| const apiList = {
| tradeBuyToken, tradeSellToken, tradeBuy, tradeSell, tradeRecord, tradeCancel, tradeDetail, getPairs
| }
|
| export default apiList
|
|