Giter Club home page Giter Club logo

hitbtc-api's Introduction

HitBTC API

PHP wrapper for the HitBTC API

Total Downloads License StyleCI Maintainability Ethereum donate button Bitcoin donate button

Requirements

The minimum requirement by HitBTC API is that your Web server supports PHP 5.6.

Installation

To install HitBTC API package you can use simple composer.json...

{
    "minimum-stability": "dev",
    "require": {
        "php": ">=5.6.0",
        "dzarezenko/hitbtc-api": "*"
    }
}

or run command:

composer require dzarezenko/hitbtc-api:dev-master

Usage

You can find usage examples in the examples/ folder or ask for new example in the issues.

Donate

You can support this project by continuously donations to

  • ETH wallet: 0x8Ef300465FBf0f3867E85AC60D9faD9DC6a232d9
  • BTC wallet: 1DKLUPCWoLFje7RBWVpDZk1tXjyRKHFkQw

hitbtc-api's People

Contributors

dzarezenko avatar karik741 avatar regisgrison avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hitbtc-api's Issues

Function addorder mistake

public function addOrder($currency, $amount, $rate = null, $params = []) {
         $optional['symbol'] = $currency; // NOT OPTIONAL - $PARAMS
         $optional['quantity'] = $amount;  // NOT OPTIONAL - $PARAMS
         if (empty($params['type'])) $params['type'] = 'market';
         if (!empty($rate)) $params['price'] = $rate;

         return $this->request('order', $optional['clientOrderId'] ? 'order/' . $optional['clientOrderId'] : null, $params, 'POST');
    }

function error

filename "HitBtcAPITrading" function "addOrder" line 152
isset($optional['clientOrderId']) ? 'order/' . $optional['clientOrderId'] : null

Couldn't find cancel order method by clientOrderId

I found only cancelAllOrders method. But here is another usefull API method:
Cancel order by clientOrderId
DELETE /api/2/order/{clientOrderId}
Response: Order
Would you like to add this method to HitBtcAPITrading.php to cancel order by clientOrderId?

Missing

Hi,
Looking at the php code, and your missing the examples folder.

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.