ElvenOpenApi
  1. v3
ElvenOpenApi
  • 开发指南
    • 接口调试方法
    • 开发前必读
    • 签名生成算法
  • 接口列表
    • v3
      • 导入交易
        POST
      • 创建entityAccount
        POST
      • 创建source
        POST
      • 查询entityAccount
        GET
      • 查询source
        GET
      • 查询platform
        GET
      • 查询currency
        GET
      • 导入余额记录
        POST
      • 创建对手方
        POST
      • 添加业务数据
        POST
      • 导入价格
        POST
      • 导入trade交易
        POST
      • 导入Galn/loss交易
        POST
      • 导入业务数据
        POST
      • 导入业务余额数据
        POST
  1. v3

导入余额记录

POST
/open/v3/account/treasuryBalance

请求参数

Header 参数

Body 参数application/json

示例
[
    {
        "entityAccountId": "gQ0SbylbkGV6RuAL9ZSO2QWcpTqYsDl5-2475",
        "currency": "BTC",
        "datetime": "2020-01-01 11:11:11",
        "balance": 10
    }
]

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://openapi.elven.com/open/v3/account/treasuryBalance' \
--header 'ELVEN-API-KEY;' \
--header 'ELVEN-API-TIMESTAMP;' \
--header 'ELVEN-API-SIGN;' \
--header 'Content-Type: application/json' \
--data-raw '[
    {
        "entityAccountId": "gQ0SbylbkGV6RuAL9ZSO2QWcpTqYsDl5-2475",
        "currency": "BTC",
        "datetime": "2020-01-01 11:11:11",
        "balance": 10
    }
]'

返回响应

🟢200成功
application/json
Body

示例
{
    "status": "success",
    "data": {
        "sourceId": 1008,
        "entityId": 371,
        "type": "API",
        "sourceName": "test-sourcename",
        "address": "",
        "cardNumber": "",
        "exchangeUserId": "",
        "apiKey": "",
        "apiSecret": "",
        "entityFileId": 0,
        "passphrase": "",
        "purpose": "OPERATING",
        "platformId": 14,
        "transactionOption": null,
        "syncLog": "",
        "syncStatus": "WAITING",
        "transactionCount": 0,
        "dateEndpoint": null,
        "updatedAt": "2023-09-27T08:32:32.559Z",
        "createdAt": "2023-09-27T08:32:32.559Z",
        "timeExceeded": false,
        "regeneration": false,
        "deletedAt": null,
        "entityAccount": null
    }
}
修改于 2025-01-13 08:08:12
上一页
查询currency
下一页
创建对手方
Built with