GithubHelp home page GithubHelp logo

tk1024 / zaif4php Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 6.0 28 KB

暗号通貨取引所Zaifの現物公開API,現物取引API,先物公開API,レバレッジ取引API, Streamingにも対応したライブラリです。

License: MIT License

PHP 100.00%

zaif4php's People

Contributors

rhosoi avatar tk1024 avatar

Stargazers

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

Watchers

 avatar

zaif4php's Issues

version1.0

  • composer対応
  • 現在のAPIに沿うようにコードの修正をする

信用取引追加

メモ

        const LEVERAGE_BASE_URL = "https://api.zaif.jp/tlapi";
	public function leverage($method, $prms=null) {
		switch ($method) {
			case 'get_positions' :
			case 'position_history' :
			case 'active_positions' :
			case 'create_position' :
			case 'change_position' :
			case 'cancel_position' :
				break;
			default:
				throw new Exception('Argument has not been set.');
				break;
		}

		$postdata = array( "nonce" => $this->nonce++, "method" => $method );
		if( !empty( $prms ) ) {
			$postdata = array_merge( $postdata, $prms );
		}
		$postdata_query = http_build_query( $postdata );
		$sign = hash_hmac( 'sha512', $postdata_query, $this->secret);
		$header = array( "Sign: {$sign}", "Key: {$this->key}", );
		$data = self::post( self::LEVERAGE_BASE_URL, $header, $postdata_query );
		$data = json_decode( $data );

		return $data;
	}

Can we fork this repo to techbureau acount

お世話になります。

先日先物取引のAPIをリリースしまして、これを機に、techbureauのアカウントに
各言語のAPIラッパーを集めようとしているのですが、差支えなければ
このリポジトリを使わせてもらってもよろしいでしょうか?

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.