Giter Site home page Giter Site logo

antpool-php-api's People

Contributors

elompenta avatar leonigas avatar xslugx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

antpool-php-api's Issues

Max 500 workers by page

Hi,

I figure out a restriction with the antpool API : we can get only 500 workers per page. After 500, we need to specify a number of page to get the others worker.

In the option on you get method, it is not possible to change the parameter "page" as it should be. Do you want me to add this feature ?

Regards
Léo

Help on showing isolated information

Hello, I'm new to programming and I would like to know how I do to show the data that are inside custom.php without without an array, example
When I give print_r ($ ant-> get ('poolStats')); he returns me a lot of information I wanted to get just one of the information he shows me

API timeout

Set API timeout after 10 seconds with error message

Add pageSize parameter

Hi

according to the do (https://www.antpool.com/user/apiGuild.htm) for each endpoint we can set the parameter "pageSize" wich is the number of records per page, and default is 10.

When we have a lot of worker and the parameter is set to 10, it is not possible to get all the workers (we have more thant 40 workers).

So we have to put the parameter pageSize to 100 to get it work !

I changed the code like following in the method get() :
$post_fields = array(
'key' => $this->key,
'nonce' => $nonce,
'signature' => $hmac,
'coin' => $coin,
'pageSize' => 100
);

But it is just to make it work, can you do the enhancement ?

Thanks

Error when request

Hi, i have Signature error message when request, have solution:

API Error: stdClass Object ( [code] => -7 [message] => Signature error )

Correct Errormessage if API down

If API is down, it would be any Curl error the mainclass will decode an JSON object.
No JSON is given if API is down

PHP Notice: Trying to get property of non-object in /antpool-php-api/classes/antpool.php on line 64
PHP Notice: Trying to get property of non-object in /antpool-php-api/custom.php on line 3
PHP Warning: Invalid argument supplied for foreach() in /antpool-php-api/custom.php on line 3
PHP Notice: Trying to get property of non-object in /antpool-php-api/classes/antpool.php on line 64
PHP Notice: Trying to get property of non-object in /antpool-php-api/custom.php on line 29

911

No worker configured yet, please follow the below steps to configure your workers:

what file?

in order for you to have a mining script you have to have some kind of mining url and they isnt any I an find so which file is it in ?_?

Getting signature error

Hello,

after registering a new api key and followed your instructions, I'm getting:
API Error: stdClass Object
(
[code] => -7
[message] => Signature error
)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.