save
curl -X GET -u "publicKey:secretKey" \
"https://api.hitbtc.com/api/2/account/crypto/is-mine/1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2"
0
0
curl -X GET -u "publicKey:secretKey" \
"https://api.hitbtc.com/api/2/history/order?symbol=ETHBTC"
Thank you!
0
0
0
0
{
"error": {
"code": 500,
"message": "Internal Server Error",
"description": "account 7988921 already freeze or disabled"
}
}
Thank you!
0
0
4.14
7
wscat -c wss://api.hitbtc.com/api/2/ws
{
"method": "login",
"params": {
"algo": "HS256",
"pKey": "3ef4a9f8c8bf04bd8f09884b98403eae",
"nonce": "N1g287gL8YOwDZr",
"signature": "b1c0ae399c2d341866a214f7d3ed755b821c1c36fc6f17083ef05fbb55b7f986"
}
}
Thank you!
7
0
4.3
10
import requests
session = requests.session()
session.auth = ("publicKey", "secretKey")
b = session.get('https://api.hitbtc.com/api/2/margin/position').json()
print(b)
Thank you!
10
0
0
0
curl -X POST -u "publicKey:secretKey" "https://api.hitbtc.com/api/2/sub-acc/transfer" \
-d "subAccountId=7988900&amount=1¤cy=BTC&type=deposit"
Thank you!
0
0
4.5
2
[
{
"id": 9535486,
"orderId": 816088377,
"clientOrderId": "f8dbaab336d44d5ba3ff578098a68454",
"symbol": "ETHBTC",
"side": "sell",
"quantity": "0.061",
"price": "0.045487",
"fee": "0.000002775",
"timestamp": "2017-05-17T12:32:57.848Z"
},
{
"id": 9535437,
"orderId": 816088021,
"clientOrderId": "27b9bfc068b44194b1f453c7af511ed6",
"symbol": "ETHBTC",
"side": "buy",
"quantity": "0.038",
"price": "0.046000",
"fee": "-0.000000174",
"timestamp": "2017-05-17T12:30:57.848Z"
}
]
Thank you!
2
0
4.5
4
import requests
session = requests.session()
session.auth = ("publicKey", "secretKey")
b = session.get('https://api.hitbtc.com/api/2/margin/account/BTCUSD').json()
print(b)
Thank you!
4
0
4.33
9
{
"address": "NXT-G22U-BYF7-H8D9-3J27W",
"publicKey": "f79779a3a0c7acc75a62afe8125de53106c6a19c1ebdf92a3598676e58773df0"
}
Thank you!
9
0
3.6
5
curl -X DELETE -u "publicKey:secretKey" \
"https://api.hitbtc.com/api/2/margin/position"
Thank you!
5
0
Are there any code examples left?
New code examples in category Other