![GitHub last commit](https://camo.githubusercontent.com/95e1980b7c25b9b67e8cbb41ff32f2dd0ff9e63d1823923f227b5990e1c20349/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f6174616b616e64656d69726b69722f7068702d74686f6465782d6170692e7376673f7374796c653d666c61742d737175617265)
PHP library for the Thodex API designed to be easy to use.
composer require atakandemirkir/php-thodex-api
require 'vendor/autoload.php';
$thodex = new Thodex\API('api_key', 'api_secret');
$myBalance = $thodex->getBalance();
{
"error":{
"code":404,
"message":null
},
"result":null
}
HTTP/1.1 406 Not Acceptable
{
"error":{
"code":620,
"message":"registration failed"
},
"result":null
}
HTTP/1.1 406 Not Acceptable
{
"error":{
"code":619,
"message":"The asset field is required."
},
"result":{
"validation":{
"asset":[
"The asset field is required."
]
}
}
}
Code |
Message |
401 |
Unauthorized |
404 |
Not Found |
406 |
Not Acceptable |
500 |
Internal Server Error |
Code |
Message |
429 |
Too many request |
600 |
Api key required |
601 |
Api key no valid |
604 |
User not found |
605 |
Below min level |
606 |
Invalid credentials |
607 |
Account disabled |
608 |
White list unauthorized ip |
609 |
Authorization token required |
610 |
Authorization token mismatch |
611 |
Invalid tonce |
612 |
Market limit order creation failed |
613 |
Market order creation failed |
614 |
Market order cancelation failed |
619 |
Parameters validation failed |
630 |
Amount must exceed transfer fee |
634 |
Wallet not found |
639 |
Only https connections allowed |
641 |
Wallet creation failed |
651 |
Transfer failed please contact us |
652 |
The amount must exceed minimum transfer limit |
657 |
Location lock |
658 |
Invalid captcha |
659 |
White list toggle failed |
660 |
White list add new failed |
661 |
White list delete failed |
673 |
Selected nationality denied asset |
MIT