# MOV闪电兑换API

Field Value
HTTP_SERVER_ENDPOINT https://ex.movapi.com/flashswap

# 获取闪兑市场深度

获取闪兑市场指定交易对的深度

# Request

GET /v3/market-depth

# Params

  • String- symbol:需要查询深度的交易对,比如BTM/USDT

# Response

  • String- symbol:交易对
  • String- fee_rate:交易手续费费率
  • Array - bids:指定深度的买单的价格和数量
  • Array - asks:指定深度的卖单的价格和数量
  • 示例:
# Request
GET https://ex.movapi.com/flashswap/v3/market-depth?symbol=BTM/USDT

# Response
{
    "code": 200,
    "msg": "",
    "data": {
        "symbol": "BTM/USDT",
        "fee_rate": "0.003000",
        "asks": [
            [
                "0.0607",
                "8611.94"
            ]
        ],
        "bids": [
            [
                "0.0599",
                "6200.23"
            ]
        ]
    }
}

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

# 提交订单

通过调用本地启动Dealer的RESTful API向MOV Server提交订单

# Request

POST /api/v1/place-order

# Body

  • String- price:挂单价格
  • String- amount:挂单的数量
  • String- side:买单/卖单
  • String- symbol:交易对,比如BTC/USDT

# Response

  • Int - code:状态码,200为成功
  • String- msg:返回的消息
  • Object- result:返回的结果
  • 示例
# Request
POST http://127.0.0.1:1024/api/v1/place-order

{
  'price': '6100',
  'amount': '0.01',
  'side': 'buy',
  'symbol': 'BTC/USDT'
}

# Response
{
  "code": 200,
  "msg": "",
  "data": {}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

# 取消订单

通过调用本地启动Dealer的RESTful API从MOV Server撤销订单

# Request

POST /api/v1/cancel-order

# Body

  • String- symbol:挂单交易对
  • String- side:买或者卖

# Response

  • Int - code:状态码,200为成功
  • String- msg:返回的消息
  • Object- result:返回的结果
  • 示例
# Request
POST http://127.0.0.1:1024/api/v1/cancel-order

{
  'symbol': 'BTC/USDT',
  'side': "buy"
}


# Response

{
  "code": 200,
  "msg": "",
  "data": {}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Last Updated: 5/11/2020, 5:55:38 PM