导入业务余额数据
POST
/open/v3/businessData
请求参数
Header 参数
ELVEN-API-KEY
string
必需
默认值:
{{ELVEN-API-KEY}}
ELVEN-API-TIMESTAMP
string
当前毫秒级时间戳
ELVEN-API-SIGN
string
必需
Body 参数application/json
entityAccountId
integer
必需
sourceId
integer
必需
list
array [object {8}]
必需
direction
string
可选
amount
integer
可选
currency
string
可选
transactionID
string
可选
type
string
可选
datetime
string
可选
counterpartyAccountNo
string
可选
memo
string
可选
示例
{
"businessDataTypeName": "余额数据",
"businessDataSourceName": "API数据",
"type": "BALANCE",
"balanceTransformer": {
"datetimeColumn": "",
"timezone": "UTC",
"currencyColumn": 4,
"amountColumn": 7,
"auxiliaryTypeName": "Z84WGdmFSztdvNTZrLh0CnGa7bfEXjpo-860",
"auxiliaryValueColumn": 0
},
"businessDataList": [
{
"ID": "SN000422",
"Datetime": "",
"User": "USER-2",
"Type": "asset received",
"Currency": "ETH",
"Channel": "OTC - OKX - 6682",
"Transaciton ID": "TR8920266",
"Quantity": 25000,
"Memo": "123"
},
{
"ID": "SN000423",
"Datetime": "2024/7/12 0:00:00",
"User": "USER-12344",
"Type": "asset received",
"Currency": "BTC",
"Channel": "OTC - OKX - 6682",
"Transaciton ID": "TR8920266",
"Quantity": 25011,
"Memo": "123"
}
]
}
示例代码
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/businessData' \
--header 'ELVEN-API-KEY;' \
--header 'ELVEN-API-TIMESTAMP;' \
--header 'ELVEN-API-SIGN;' \
--header 'Content-Type: application/json' \
--data-raw '{
"businessDataTypeName":"余额数据",
"businessDataSourceName":"API数据",
"type":"BALANCE",
"balanceTransformer":{
"datetimeColumn":"" ,
"timezone": "UTC",
"currencyColumn": 4,
"amountColumn": 7,
"auxiliaryTypeName": "Z84WGdmFSztdvNTZrLh0CnGa7bfEXjpo-860",
"auxiliaryValueColumn": 0
},
"businessDataList":[
{
"ID":"SN000422",
"Datetime":"",
"User":"USER-2",
"Type":"asset received",
"Currency":"ETH",
"Channel":"OTC - OKX - 6682",
"Transaciton ID":"TR8920266",
"Quantity":25000,
"Memo":"123"
},
{
"ID":"SN000423",
"Datetime":"2024/7/12 0:00:00",
"User":"USER-12344",
"Type":"asset received",
"Currency":"BTC",
"Channel":"OTC - OKX - 6682",
"Transaciton ID":"TR8920266",
"Quantity":25011,
"Memo":"123"
}
]
}'
返回响应
🟢200成功
application/json
Body
status
string
必需
data
object
必需
sourceId
integer
必需
entityId
integer
必需
type
string
必需
sourceName
string
必需
address
string
必需
cardNumber
string
必需
exchangeUserId
string
必需
apiKey
string
必需
apiSecret
string
必需
entityFileId
integer
必需
passphrase
string
必需
purpose
string
必需
platformId
integer
必需
transactionOption
null
必需
syncLog
string
必需
syncStatus
string
必需
transactionCount
integer
必需
dateEndpoint
null
必需
updatedAt
string
必需
createdAt
string
必需
timeExceeded
boolean
必需
regeneration
boolean
必需
deletedAt
null
必需
entityAccount
null
必需
示例
{
"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