资金划转接口

根据转账Id查询转账请求信息

请求用户资产转账 钱包->现货

post
Body
currencystringOptional
amountnumberOptional
Responses
200

OK

*/*
post
POST /v1/transfer/request/wallet/to/spots HTTP/1.1
Host: dex-api.benpay.com
Content-Type: application/json
Accept: */*
Content-Length: 30

{
  "currency": "text",
  "amount": 1
}
200

OK

{
  "success": true,
  "data": {
    "transferId": "text",
    "success1": true,
    "success2": true,
    "done1": true,
    "done2": true,
    "transferFrom": "WALLET",
    "transferTo": "WALLET",
    "fromUserId": 1,
    "toUserId": 1,
    "amount": 1,
    "errorCode": "text",
    "createdAt": 1,
    "updatedAt": 1,
    "status": "PROCESSING",
    "currency": "text"
  },
  "error": "text",
  "errorField": "text",
  "errorMessage": "text"
}

请求用户资产转账 钱包->期货

post
Body
currencystringOptional
amountnumberOptional
Responses
200

OK

*/*
post
POST /v1/transfer/request/wallet/to/contracts HTTP/1.1
Host: dex-api.benpay.com
Content-Type: application/json
Accept: */*
Content-Length: 30

{
  "currency": "text",
  "amount": 1
}
200

OK

{
  "success": true,
  "data": {
    "transferId": "text",
    "success1": true,
    "success2": true,
    "done1": true,
    "done2": true,
    "transferFrom": "WALLET",
    "transferTo": "WALLET",
    "fromUserId": 1,
    "toUserId": 1,
    "amount": 1,
    "errorCode": "text",
    "createdAt": 1,
    "updatedAt": 1,
    "status": "PROCESSING",
    "currency": "text"
  },
  "error": "text",
  "errorField": "text",
  "errorMessage": "text"
}

请求用户资产转账 现货->钱包

post
Body
currencystringOptional
amountnumberOptional
Responses
200

OK

*/*
post
POST /v1/transfer/request/spots/to/wallet HTTP/1.1
Host: dex-api.benpay.com
Content-Type: application/json
Accept: */*
Content-Length: 30

{
  "currency": "text",
  "amount": 1
}
200

OK

{
  "success": true,
  "data": {
    "transferId": "text",
    "success1": true,
    "success2": true,
    "done1": true,
    "done2": true,
    "transferFrom": "WALLET",
    "transferTo": "WALLET",
    "fromUserId": 1,
    "toUserId": 1,
    "amount": 1,
    "errorCode": "text",
    "createdAt": 1,
    "updatedAt": 1,
    "status": "PROCESSING",
    "currency": "text"
  },
  "error": "text",
  "errorField": "text",
  "errorMessage": "text"
}

请求用户资产转账 期货->钱包

post
Body
currencystringOptional
amountnumberOptional
Responses
200

OK

*/*
post
POST /v1/transfer/request/contracts/to/wallet HTTP/1.1
Host: dex-api.benpay.com
Content-Type: application/json
Accept: */*
Content-Length: 30

{
  "currency": "text",
  "amount": 1
}
200

OK

{
  "success": true,
  "data": {
    "transferId": "text",
    "success1": true,
    "success2": true,
    "done1": true,
    "done2": true,
    "transferFrom": "WALLET",
    "transferTo": "WALLET",
    "fromUserId": 1,
    "toUserId": 1,
    "amount": 1,
    "errorCode": "text",
    "createdAt": 1,
    "updatedAt": 1,
    "status": "PROCESSING",
    "currency": "text"
  },
  "error": "text",
  "errorField": "text",
  "errorMessage": "text"
}

获取currencyMappings相关信息

get
Responses
200

OK

*/*
get
GET /v1/wallet/currencyMappings HTTP/1.1
Host: dex-api.benpay.com
Accept: */*
200

OK

{
  "success": true,
  "data": [
    {
      "currencyId": 1,
      "address": "text",
      "name": "text",
      "symbol": "text",
      "decimals": 1,
      "iconUrl": "text"
    }
  ],
  "error": "text",
  "errorField": "text",
  "errorMessage": "text"
}

查询用户钱包资产余额信息

get
Responses
200

OK

*/*
get
GET /v1/wallet/balances HTTP/1.1
Host: dex-api.benpay.com
Accept: */*
200

OK

{
  "success": true,
  "data": {
    "ANY_ADDITIONAL_PROPERTY": [
      1
    ]
  },
  "error": "text",
  "errorField": "text",
  "errorMessage": "text"
}

根据转账Id查询转账请求信息

get
Path parameters
transferIdstringRequired
Responses
200

OK

*/*
get
GET /v1/transfer/{transferId}/request HTTP/1.1
Host: dex-api.benpay.com
Accept: */*
200

OK

{
  "success": true,
  "data": {
    "transferId": "text",
    "success1": true,
    "success2": true,
    "done1": true,
    "done2": true,
    "transferFrom": "WALLET",
    "transferTo": "WALLET",
    "fromUserId": 1,
    "toUserId": 1,
    "amount": 1,
    "errorCode": "text",
    "createdAt": 1,
    "updatedAt": 1,
    "status": "PROCESSING",
    "currency": "text"
  },
  "error": "text",
  "errorField": "text",
  "errorMessage": "text"
}

根据转账Id查询转账日志列表信息

get
Path parameters
transferIdstringRequired
Responses
200

OK

*/*
get
GET /v1/transfer/{transferId}/log HTTP/1.1
Host: dex-api.benpay.com
Accept: */*
200

OK

{
  "success": true,
  "data": [
    {
      "id": 1,
      "transferId": "text",
      "receiver": true,
      "done": true,
      "success": true,
      "userId": 1,
      "accountId": 1,
      "transferFrom": "WALLET",
      "transferTo": "WALLET",
      "amount": 1,
      "createdAt": 1,
      "updatedAt": 1,
      "currency": "text"
    }
  ],
  "error": "text",
  "errorField": "text",
  "errorMessage": "text"
}

分页查询转账日志列表信息

get
Query parameters
offsetIdinteger · int64OptionalDefault: 0
maxResultsinteger · int32OptionalDefault: 100
Responses
200

OK

*/*
get
GET /v1/transfer/transfer/logs HTTP/1.1
Host: dex-api.benpay.com
Accept: */*
200

OK

{
  "hasMore": true,
  "nextOffsetId": 1,
  "results": [
    {
      "id": 1,
      "transferId": "text",
      "receiver": true,
      "done": true,
      "success": true,
      "userId": 1,
      "accountId": 1,
      "transferFrom": "WALLET",
      "transferTo": "WALLET",
      "amount": 1,
      "createdAt": 1,
      "updatedAt": 1,
      "currency": "text"
    }
  ]
}

Last updated