Back to Ccxt

Zaif

wiki/exchanges-implicit/zaif.md

4.5.644.3 KB
Original Source

Every endpoint in zaif's api definition is exposed as an implicit method — a thin, generated wrapper around the raw exchange endpoint. Use these for exchange-specific functionality the CCXT API does not cover.

These methods are available in every CCXT language — TypeScript, JavaScript, Python, PHP, C# and Go. Call them by the camelCase name shown in the tables below (e.g. publicGetDepthPair); the snake_case alias (public_get_depth_pair) also works in JavaScript, Python and PHP, and Go uses the PascalCase form (PublicGetDepthPair). Switch tabs for the call in each language:

<!-- tabs:start -->

JavaScript

javascript
const zaif = new ccxt.zaif ();
const response = await zaif.publicGetDepthPair (params);

TypeScript

typescript
import ccxt from 'ccxt';
const zaif = new ccxt.zaif ();
const response = await zaif.publicGetDepthPair (params);

Python

python
import ccxt
zaif = ccxt.zaif()
response = zaif.public_get_depth_pair(params)

PHP

php
$zaif = new \ccxt\zaif();
$response = $zaif->public_get_depth_pair($params);

C#

csharp
using ccxt;
var zaif = new Zaif();
var response = await zaif.publicGetDepthPair(parameters);

Go

go
zaif := ccxt.NewZaif(nil)
response := <-zaif.PublicGetDepthPair(params)
<!-- tabs:end -->

Path parameters wrapped in {} (e.g. {pair}) are substituted from params; everything else in params is sent as the query string or request body. Cost is the rate-limiter weight of each call.

📚 Official zaif API documentation: techbureau-api-document.readthedocs.io · corp.zaif.jp · corp.zaif.jp · npmjs.com · github.com

34 implicit endpoints across 5 access groups.

public

MethodHTTPEndpointCost
publicGetDepthPairGETdepth/{pair}1
publicGetCurrenciesPairGETcurrencies/{pair}1
publicGetCurrenciesAllGETcurrencies/all1
publicGetCurrencyPairsPairGETcurrency_pairs/{pair}1
publicGetCurrencyPairsAllGETcurrency_pairs/all1
publicGetLastPricePairGETlast_price/{pair}1
publicGetTickerPairGETticker/{pair}1
publicGetTradesPairGETtrades/{pair}1

private

MethodHTTPEndpointCost
privatePostActiveOrdersPOSTactive_orders5
privatePostCancelOrderPOSTcancel_order5
privatePostDepositHistoryPOSTdeposit_history5
privatePostGetIdInfoPOSTget_id_info5
privatePostGetInfoPOSTget_info10
privatePostGetInfo2POSTget_info25
privatePostGetPersonalInfoPOSTget_personal_info5
privatePostTradePOSTtrade5
privatePostTradeHistoryPOSTtrade_history50
privatePostWithdrawPOSTwithdraw5
privatePostWithdrawHistoryPOSTwithdraw_history5

ecapi

MethodHTTPEndpointCost
ecapiPostCreateInvoicePOSTcreateInvoice1
ecapiPostGetInvoicePOSTgetInvoice1
ecapiPostGetInvoiceIdsByOrderNumberPOSTgetInvoiceIdsByOrderNumber1
ecapiPostCancelInvoicePOSTcancelInvoice1

tlapi

MethodHTTPEndpointCost
tlapiPostGetPositionsPOSTget_positions66
tlapiPostPositionHistoryPOSTposition_history66
tlapiPostActivePositionsPOSTactive_positions5
tlapiPostCreatePositionPOSTcreate_position33
tlapiPostChangePositionPOSTchange_position33
tlapiPostCancelPositionPOSTcancel_position33

fapi

MethodHTTPEndpointCost
fapiGetGroupsGroupIdGETgroups/{group_id}1
fapiGetLastPriceGroupIdPairGETlast_price/{group_id}/{pair}1
fapiGetTickerGroupIdPairGETticker/{group_id}/{pair}1
fapiGetTradesGroupIdPairGETtrades/{group_id}/{pair}1
fapiGetDepthGroupIdPairGETdepth/{group_id}/{pair}1