Back to Ccxt

Pacifica

wiki/exchanges-implicit/pacifica.md

4.5.644.4 KB
Original Source

Every endpoint in pacifica'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. publicGetInfo); the snake_case alias (public_get_info) also works in JavaScript, Python and PHP, and Go uses the PascalCase form (PublicGetInfo). Switch tabs for the call in each language:

<!-- tabs:start -->

JavaScript

javascript
const pacifica = new ccxt.pacifica ();
const response = await pacifica.publicGetInfo (params);

TypeScript

typescript
import ccxt from 'ccxt';
const pacifica = new ccxt.pacifica ();
const response = await pacifica.publicGetInfo (params);

Python

python
import ccxt
pacifica = ccxt.pacifica()
response = pacifica.public_get_info(params)

PHP

php
$pacifica = new \ccxt\pacifica();
$response = $pacifica->public_get_info($params);

C#

csharp
using ccxt;
var pacifica = new Pacifica();
var response = await pacifica.publicGetInfo(parameters);

Go

go
pacifica := ccxt.NewPacifica(nil)
response := <-pacifica.PublicGetInfo(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 pacifica API documentation: docs.pacifica.fi

39 implicit endpoints across 2 access groups.

public

Base URL: https://api.{hostname}

MethodHTTPEndpointCost
publicGetInfoGETinfo1
publicGetInfoPricesGETinfo/prices1
publicGetKlineGETkline12
publicGetKlineMarkGETkline/mark12
publicGetBookGETbook1
publicGetTradesGETtrades1
publicGetFundingRateHistoryGETfunding_rate/history1
publicGetAccountGETaccount1
publicGetAccountSettingsGETaccount/settings1
publicGetPositionsGETpositions1
publicGetTradesHistoryGETtrades/history12
publicGetFundingHistoryGETfunding/history1
publicGetPortfolioGETportfolio1
publicGetAccountBalanceHistoryGETaccount/balance/history12
publicGetOrdersGETorders1
publicGetOrdersHistoryGETorders/history12
publicGetOrdersHistoryByIdGETorders/history_by_id1
publicGetAccountBuilderCodesApprovalsGETaccount/builder_codes/approvals1

private

Base URL: https://api.{hostname}

MethodHTTPEndpointCost
privatePostAccountLeveragePOSTaccount/leverage1
privatePostAccountMarginPOSTaccount/margin1
privatePostAccountWithdrawPOSTaccount/withdraw1
privatePostAccountSubaccountCreatePOSTaccount/subaccount/create1
privatePostAccountSubaccountListPOSTaccount/subaccount/list1
privatePostAccountSubaccountTransferPOSTaccount/subaccount/transfer1
privatePostOrdersCreatePOSTorders/create1
privatePostOrdersCreateMarketPOSTorders/create_market1
privatePostOrdersStopCreatePOSTorders/stop/create1
privatePostPositionsTpslPOSTpositions/tpsl1
privatePostOrdersCancelPOSTorders/cancel0.5
privatePostOrdersCancelAllPOSTorders/cancel_all0.5
privatePostOrdersStopCancelPOSTorders/stop/cancel0.5
privatePostOrdersEditPOSTorders/edit1
privatePostOrdersBatchPOSTorders/batch1
privatePostAccountBuilderCodesApprovePOSTaccount/builder_codes/approve1
privatePostAccountBuilderCodesRevokePOSTaccount/builder_codes/revoke1
privatePostAgentBindPOSTagent/bind1
privatePostAccountApiKeysCreatePOSTaccount/api_keys/create1
privatePostAccountApiKeysRevokePOSTaccount/api_keys/revoke1
privatePostAccountApiKeysPOSTaccount/api_keys1