- API를 통해 거래 작업을 수행하고, 잔고 정보를 받을 수 있습니다.
- Api 설정", 아래 https://wallet.cryptonex.org/ 내부에 API 키를 생성할 수 있습니다.
- API 키 생성 후, 키와 비밀 키를 얻으실 수 있습니다. 인증에 사용되는 API 키에 대한 정보.
- 메서드 이름과 모든 메서드 매개 변수는 JSON-RPC 매개 변수에서 POST 메서드를 통해 전송됩니다.
- 인증이 필요한 모든 요청.
- 인증은 다음 JSON-RPC 2.0 매개 변수를 전송하여 수행됩니다.
| 공개 키 | 공개 키를 위해, 사용자 프로필 설정 (예: 258ae265-642323ae6-8e22-c6a11fe26f3fsdsdw4b)을 가져와야합니다. |
|---|---|
| 생성된 서명 | Sign - POST data "user.account_list" + " 1 " + "aQcLC343dsfg9hgbOLGeredfsdfIry" (API 메소드 + 난스 + 비밀 키)비밀 키 메서드 SHA - 256에 의해 서명, 비밀 키는 사용자 프로파일 설정에서 가져와야 합니다. |
| 요구되는 증분 값 | 각 요청에 대해 난스(nonce, 임시 값)를 증가시키는 숫자 매개 변수. |
Curl의 예
curl -H "Content-Type: application/json" -X POST -d '{"jsonrpc":"2.0", "method": "user.account_list", "params":{"key":"941-fb77-4153-a057-0fgh83c3a454c", "sign": "4e96bc40b2gfhvbn65771ac493cbbed4b4aa2c5ec6006c32ae8385e48e3c", "nonce": 1}, "id":2}' https://userapi.cryptonex.org/apiuser.account_list
| URL | https://userapi.cryptonex.org/api |
|---|---|
| 메서드 이름 | post user.account_list |
| 변수(parameter) | 비어 있음 |
| 예 | {
"id": 2,
"jsonrpc": "2.0",
"method": "user.account_list",
"params": {
"key": "330f1dd6-af88-4335-bb8f-0a7b9f6afaa7",
"sign": "Code",
"nonce": 1
}
} |
| 응답 | {
"id": 2,
"jsonrpc": "2.0",
"result": {
"accounts": [
{
"balance": "0",
"currency": "btc",
"hash": "14x2insrz24PirkRA73TFwvNRYTKqbwxEQ",
"type": "crypto"
},
{
"balance": "0",
"currency": "eth",
"hash": "0x79ff9548653c3a1777c4121f65c678e72629ef9e",
"type": "crypto"
}
]
}
} |
account.withdraw
| URL | https://userapi.cryptonex.org/api |
|---|---|
| 메서드 이름 | post account.withdraw |
| 변수(parameter) |
|
| 예 | {
"id": 2,
"jsonrpc": "2.0",
"method": "account.withdraw",
"params": {
"key": "330f1dd6-af88-4335-bb8f-0a7b9f6afaa7",
"sign": "Code",
"nonce": 1,
"amount": "5",
"from_hash": "Gh7tmu4234fsdfnweLLdisb8xMaxGyWCv7ui",
"to_hash": "GgDEpsfEWrsdfse343MkdmcKv5C4axYR87"
}
} |
| 응답 | {
"id": 1,
"jsonrpc": "2.0",
"result": {
"id": 7,
"user_id": 2,
"balance": "76.53154234",
"confirm_type": "email",
"currency": "cnx",
"hash": "Gh7tmu4234fsdfnweLLdisb8xMaxGyWCv7ui"
}
} |
transaction.list
| URL | https://userapi.cryptonex.org/api |
|---|---|
| 메서드 이름 | post transaction.list |
| 변수(parameter) |
|
| 예 | {
"id": 2,
"jsonrpc": "2.0",
"method": "transaction.list",
"params": {
"key": "330f1dd6-af88-4335-bb8f-0a7b9f6afaa7",
"sign": "Code",
"nonce": 1,
"max_count": 10
}
} |
| 응답 | {
"id": 5,
"jsonrpc": "2.0",
"result": {
"summary": {
"first_stamp": "2017-08-31 22:46:31.15804",
"last_stamp": "2018-01-30 12:15:23.026104",
"total": 180
},
"transactions": [
{
"block_hash": "",
"from_amount": "5",
"from_commission": "0",
"from_currency": "cnx",
"from_hash": "Gh7tmu43836W5nweLLdisb8xMaxGyWCvLr",
"id": 1918,
"post_stamp": "2018-01-30 12:15:23.026104",
"rate": "0",
"status": "moderate",
"to_amount": "5",
"to_currency": "cnx",
"to_hash": "GgDEpsfEWrN8xiQDezMkdmcKv5C4axYRGk",
"tx_id": "",
"type": "withdrawal",
"update_stamp": "2018-01-30 12:15:23.026104"
}
]
}
} |
currency_pair.get_rate_list
| URL | https://userapi.cryptonex.org/api |
|---|---|
| 메서드 이름 | post currency_pair.get_rate_list |
| 변수(parameter) | 비어 있음 |
| 예 | {
"id": 2,
"jsonrpc": "2.0",
"method": "currency_pair.get_rate_list",
"params": {
"key": "330f1dd6-af88-4335-bb8f-0a7b9f6afaa7",
"sign": "Code",
"nonce": 1
}
} |
| 응답 | {
"id": 2,
"jsonrpc": "2.0",
"result": {
"rates": [
{
"alias": "CNX/BTC",
"ask": "0.0007866",
"base_currency": "cnx",
"base_type": "crypto",
"bid": "0.00072375",
"convert_type": "cross",
"rel_currency_id": "btc",
"rel_type": "crypto",
"update_stamp": "2018-01-30 12:50:02.794084",
"value_last_24h": "18536.65481165"
}
]
}
} |
currency.convert
| URL | https://userapi.cryptonex.org/api |
|---|---|
| 메서드 이름 | post currency.convert |
| 변수(parameter) |
|
| 예 | {
"id": 2,
"jsonrpc": "2.0",
"method": "currency.convert",
"params": {
"key": "330f1dd6-af88-4335-bb8f-0a7b9f6afaa7",
"sign": "Code",
"nonce": 1,
"amount": "1",
"from_currency": "cnx",
"to_currency": "btc"
}
} |
| 응답 | {
"id": 2,
"jsonrpc": "2.0",
"result": {
"status": "ok"
}
} |
user.info
| URL | https://userapi.cryptonex.org/api |
|---|---|
| 메서드 이름 | post user.info |
| 변수(parameter) | 비어 있음 |
| 예 | {
"id": 2,
"jsonrpc": "2.0",
"method": "user.info",
"params": {
"key": "330f1dd6-af88-4335-bb8f-0a7b9f6afaa7",
"sign": "Code",
"nonce": 1
}
} |
| 응답 | {
"id": 2,
"jsonrpc": "2.0",
"result": {
"id": 2,
"login": "[email protected]",
"auth_2fa": false,
"deposit_auto_convert": false,
"eth_cnx_bonus": "0.0",
"post_stamp": "2017-08-29 20:29:27.844215"
}
} |
stats.get_rate_list
| URL | https://stats.cryptonex.org/get_rate_list |
|---|---|
| 메서드 이름 | get stats.get_rate_list |
| 변수(parameter) | 비어 있음 |
| 예 | {} |
| 응답 | {
"rates": [
{
"alias": "ETH/BTC",
"ask": "0.02946700000000000000",
"base_currency": "eth",
"base_type": "crypto",
"bid": "0.02944300000000000000",
"convert_type": "",
"last24_price": "0.02941800000000000000",
"last_price": "0.02946500000000000000",
"rel_currency_id": "btc",
"rel_type": "crypto",
"update_stamp": "2019-06-18 17:38:26",
"value_last_24h": "1245371.88000000000000000000"
}
]
} |
stats.trade_list
| URL | https://stats.cryptonex.org |
|---|---|
| 메서드 이름 | post stats.trade_list |
| 변수(parameter) |
|
| 예 | {
"id": 1,
"jsonrpc": "2.0",
"method": "stats.trade_list",
"params": {
"pair": "eth/usd",
"max_count": 10
}
} |
| 응답 | {
"id": 1,
"jsonrpc": "2.0",
"result": {
"trade_list": [
{
"buyer_amount": "20.43000000000000000000",
"create_at": "2019-06-18 13:17:16.474126",
"id": 6353294,
"pair": "eth/usd",
"price": "266.81000000000000000000",
"seller_amount": "5450.92830000000000000000",
"type": "sell",
"uuid": "cecc0ba8-e86b-4e92-83ad-6bb9c967edca"
},
{
"buyer_amount": "20.43000000000000000000",
"create_at": "2019-06-18 13:17:16.474126",
"id": 6353294,
"pair": "eth/usd",
"price": "266.81000000000000000000",
"seller_amount": "5450.92830000000000000000",
"type": "buy",
"uuid": "f126ca73-630e-4406-9cca-44fa871bc849"
}
]
}
} |
stats.order_book
| URL | https://stats.cryptonex.org |
|---|---|
| 메서드 이름 | post stats.order_book |
| 변수(parameter) |
|
| 예 | {
"id": 1,
"jsonrpc": "2.0",
"method": "stats.order_book",
"params": {
"pair": "eth/usd",
"max_count": 10
}
} |
| 응답 | {
"id": 1,
"jsonrpc": "2.0",
"result": {
"order_book": {
"asks": [
[
"267.32000000000000000000",
"14.92"
]
],
"bids": [
[
"266.97000000000000000000",
"12.89"
]
]
}
}
} |
