<?php

namespace ccxt\async\abstract;

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code


abstract class poloniex extends \ccxt\async\Exchange {
    public function public_get_markets($params = array()) {
        return $this->request('markets', 'public', 'GET', $params, null, null, array("cost" => 20));
    }
    public function public_get_markets_symbol($params = array()) {
        return $this->request('markets/{symbol}', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function public_get_currencies($params = array()) {
        return $this->request('currencies', 'public', 'GET', $params, null, null, array("cost" => 20));
    }
    public function public_get_currencies_currency($params = array()) {
        return $this->request('currencies/{currency}', 'public', 'GET', $params, null, null, array("cost" => 20));
    }
    public function public_get_v2_currencies($params = array()) {
        return $this->request('v2/currencies', 'public', 'GET', $params, null, null, array("cost" => 20));
    }
    public function public_get_v2_currencies_currency($params = array()) {
        return $this->request('v2/currencies/{currency}', 'public', 'GET', $params, null, null, array("cost" => 20));
    }
    public function public_get_timestamp($params = array()) {
        return $this->request('timestamp', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function public_get_markets_price($params = array()) {
        return $this->request('markets/price', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function public_get_markets_symbol_price($params = array()) {
        return $this->request('markets/{symbol}/price', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function public_get_markets_markprice($params = array()) {
        return $this->request('markets/markPrice', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function public_get_markets_symbol_markprice($params = array()) {
        return $this->request('markets/{symbol}/markPrice', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function public_get_markets_symbol_markpricecomponents($params = array()) {
        return $this->request('markets/{symbol}/markPriceComponents', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function public_get_markets_symbol_orderbook($params = array()) {
        return $this->request('markets/{symbol}/orderBook', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function public_get_markets_symbol_candles($params = array()) {
        return $this->request('markets/{symbol}/candles', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function public_get_markets_symbol_trades($params = array()) {
        return $this->request('markets/{symbol}/trades', 'public', 'GET', $params, null, null, array("cost" => 20));
    }
    public function public_get_markets_ticker24h($params = array()) {
        return $this->request('markets/ticker24h', 'public', 'GET', $params, null, null, array("cost" => 20));
    }
    public function public_get_markets_symbol_ticker24h($params = array()) {
        return $this->request('markets/{symbol}/ticker24h', 'public', 'GET', $params, null, null, array("cost" => 20));
    }
    public function public_get_markets_collateralinfo($params = array()) {
        return $this->request('markets/collateralInfo', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function public_get_markets_currency_collateralinfo($params = array()) {
        return $this->request('markets/{currency}/collateralInfo', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function public_get_markets_borrowratesinfo($params = array()) {
        return $this->request('markets/borrowRatesInfo', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function private_get_accounts($params = array()) {
        return $this->request('accounts', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function private_get_accounts_balances($params = array()) {
        return $this->request('accounts/balances', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function private_get_accounts_id_balances($params = array()) {
        return $this->request('accounts/{id}/balances', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function private_get_accounts_activity($params = array()) {
        return $this->request('accounts/activity', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function private_get_accounts_transfer($params = array()) {
        return $this->request('accounts/transfer', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function private_get_accounts_transfer_id($params = array()) {
        return $this->request('accounts/transfer/{id}', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function private_get_feeinfo($params = array()) {
        return $this->request('feeinfo', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function private_get_accounts_interest_history($params = array()) {
        return $this->request('accounts/interest/history', 'private', 'GET', $params, null, null, array("cost" => 1));
    }
    public function private_get_subaccounts($params = array()) {
        return $this->request('subaccounts', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function private_get_subaccounts_balances($params = array()) {
        return $this->request('subaccounts/balances', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function private_get_subaccounts_id_balances($params = array()) {
        return $this->request('subaccounts/{id}/balances', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function private_get_subaccounts_transfer($params = array()) {
        return $this->request('subaccounts/transfer', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function private_get_subaccounts_transfer_id($params = array()) {
        return $this->request('subaccounts/transfer/{id}', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function private_get_wallets_addresses($params = array()) {
        return $this->request('wallets/addresses', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function private_get_wallets_addresses_currency($params = array()) {
        return $this->request('wallets/addresses/{currency}', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function private_get_wallets_activity($params = array()) {
        return $this->request('wallets/activity', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function private_get_margin_accountmargin($params = array()) {
        return $this->request('margin/accountMargin', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function private_get_margin_borrowstatus($params = array()) {
        return $this->request('margin/borrowStatus', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function private_get_margin_maxsize($params = array()) {
        return $this->request('margin/maxSize', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function private_get_orders($params = array()) {
        return $this->request('orders', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function private_get_orders_id($params = array()) {
        return $this->request('orders/{id}', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function private_get_orders_killswitchstatus($params = array()) {
        return $this->request('orders/killSwitchStatus', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function private_get_smartorders($params = array()) {
        return $this->request('smartorders', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function private_get_smartorders_id($params = array()) {
        return $this->request('smartorders/{id}', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function private_get_orders_history($params = array()) {
        return $this->request('orders/history', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function private_get_smartorders_history($params = array()) {
        return $this->request('smartorders/history', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function private_get_trades($params = array()) {
        return $this->request('trades', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function private_get_orders_id_trades($params = array()) {
        return $this->request('orders/{id}/trades', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function private_post_accounts_transfer($params = array()) {
        return $this->request('accounts/transfer', 'private', 'POST', $params, null, null, array("cost" => 4));
    }
    public function private_post_subaccounts_transfer($params = array()) {
        return $this->request('subaccounts/transfer', 'private', 'POST', $params, null, null, array("cost" => 20));
    }
    public function private_post_wallets_address($params = array()) {
        return $this->request('wallets/address', 'private', 'POST', $params, null, null, array("cost" => 20));
    }
    public function private_post_wallets_withdraw($params = array()) {
        return $this->request('wallets/withdraw', 'private', 'POST', $params, null, null, array("cost" => 20));
    }
    public function private_post_v2_wallets_withdraw($params = array()) {
        return $this->request('v2/wallets/withdraw', 'private', 'POST', $params, null, null, array("cost" => 20));
    }
    public function private_post_orders($params = array()) {
        return $this->request('orders', 'private', 'POST', $params, null, null, array("cost" => 4));
    }
    public function private_post_orders_batch($params = array()) {
        return $this->request('orders/batch', 'private', 'POST', $params, null, null, array("cost" => 20));
    }
    public function private_post_orders_killswitch($params = array()) {
        return $this->request('orders/killSwitch', 'private', 'POST', $params, null, null, array("cost" => 4));
    }
    public function private_post_smartorders($params = array()) {
        return $this->request('smartorders', 'private', 'POST', $params, null, null, array("cost" => 4));
    }
    public function private_delete_orders_id($params = array()) {
        return $this->request('orders/{id}', 'private', 'DELETE', $params, null, null, array("cost" => 4));
    }
    public function private_delete_orders_cancelbyids($params = array()) {
        return $this->request('orders/cancelByIds', 'private', 'DELETE', $params, null, null, array("cost" => 20));
    }
    public function private_delete_orders($params = array()) {
        return $this->request('orders', 'private', 'DELETE', $params, null, null, array("cost" => 20));
    }
    public function private_delete_smartorders_id($params = array()) {
        return $this->request('smartorders/{id}', 'private', 'DELETE', $params, null, null, array("cost" => 4));
    }
    public function private_delete_smartorders_cancelbyids($params = array()) {
        return $this->request('smartorders/cancelByIds', 'private', 'DELETE', $params, null, null, array("cost" => 20));
    }
    public function private_delete_smartorders($params = array()) {
        return $this->request('smartorders', 'private', 'DELETE', $params, null, null, array("cost" => 20));
    }
    public function private_put_orders_id($params = array()) {
        return $this->request('orders/{id}', 'private', 'PUT', $params, null, null, array("cost" => 20));
    }
    public function private_put_smartorders_id($params = array()) {
        return $this->request('smartorders/{id}', 'private', 'PUT', $params, null, null, array("cost" => 20));
    }
    public function swappublic_get_v3_market_allinstruments($params = array()) {
        return $this->request('v3/market/allInstruments', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swappublic_get_v3_market_instruments($params = array()) {
        return $this->request('v3/market/instruments', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swappublic_get_v3_market_orderbook($params = array()) {
        return $this->request('v3/market/orderBook', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swappublic_get_v3_market_candles($params = array()) {
        return $this->request('v3/market/candles', 'swapPublic', 'GET', $params, null, null, array("cost" => 10));
    }
    public function swappublic_get_v3_market_indexpricecandlesticks($params = array()) {
        return $this->request('v3/market/indexPriceCandlesticks', 'swapPublic', 'GET', $params, null, null, array("cost" => 10));
    }
    public function swappublic_get_v3_market_premiumindexcandlesticks($params = array()) {
        return $this->request('v3/market/premiumIndexCandlesticks', 'swapPublic', 'GET', $params, null, null, array("cost" => 10));
    }
    public function swappublic_get_v3_market_markpricecandlesticks($params = array()) {
        return $this->request('v3/market/markPriceCandlesticks', 'swapPublic', 'GET', $params, null, null, array("cost" => 10));
    }
    public function swappublic_get_v3_market_trades($params = array()) {
        return $this->request('v3/market/trades', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swappublic_get_v3_market_liquidationorder($params = array()) {
        return $this->request('v3/market/liquidationOrder', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swappublic_get_v3_market_tickers($params = array()) {
        return $this->request('v3/market/tickers', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swappublic_get_v3_market_markprice($params = array()) {
        return $this->request('v3/market/markPrice', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swappublic_get_v3_market_indexprice($params = array()) {
        return $this->request('v3/market/indexPrice', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swappublic_get_v3_market_indexpricecomponents($params = array()) {
        return $this->request('v3/market/indexPriceComponents', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swappublic_get_v3_market_fundingrate($params = array()) {
        return $this->request('v3/market/fundingRate', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swappublic_get_v3_market_openinterest($params = array()) {
        return $this->request('v3/market/openInterest', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swappublic_get_v3_market_insurance($params = array()) {
        return $this->request('v3/market/insurance', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swappublic_get_v3_market_risklimit($params = array()) {
        return $this->request('v3/market/riskLimit', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swapprivate_get_v3_account_balance($params = array()) {
        return $this->request('v3/account/balance', 'swapPrivate', 'GET', $params, null, null, array("cost" => 4));
    }
    public function swapprivate_get_v3_account_bills($params = array()) {
        return $this->request('v3/account/bills', 'swapPrivate', 'GET', $params, null, null, array("cost" => 20));
    }
    public function swapprivate_get_v3_trade_order_opens($params = array()) {
        return $this->request('v3/trade/order/opens', 'swapPrivate', 'GET', $params, null, null, array("cost" => 20));
    }
    public function swapprivate_get_v3_trade_order_trades($params = array()) {
        return $this->request('v3/trade/order/trades', 'swapPrivate', 'GET', $params, null, null, array("cost" => 20));
    }
    public function swapprivate_get_v3_trade_order_history($params = array()) {
        return $this->request('v3/trade/order/history', 'swapPrivate', 'GET', $params, null, null, array("cost" => 20));
    }
    public function swapprivate_get_v3_trade_position_opens($params = array()) {
        return $this->request('v3/trade/position/opens', 'swapPrivate', 'GET', $params, null, null, array("cost" => 20));
    }
    public function swapprivate_get_v3_trade_position_history($params = array()) {
        return $this->request('v3/trade/position/history', 'swapPrivate', 'GET', $params, null, null, array("cost" => 20));
    }
    public function swapprivate_get_v3_position_leverages($params = array()) {
        return $this->request('v3/position/leverages', 'swapPrivate', 'GET', $params, null, null, array("cost" => 20));
    }
    public function swapprivate_get_v3_position_mode($params = array()) {
        return $this->request('v3/position/mode', 'swapPrivate', 'GET', $params, null, null, array("cost" => 20));
    }
    public function swapprivate_post_v3_trade_order($params = array()) {
        return $this->request('v3/trade/order', 'swapPrivate', 'POST', $params, null, null, array("cost" => 4));
    }
    public function swapprivate_post_v3_trade_orders($params = array()) {
        return $this->request('v3/trade/orders', 'swapPrivate', 'POST', $params, null, null, array("cost" => 40));
    }
    public function swapprivate_post_v3_trade_position($params = array()) {
        return $this->request('v3/trade/position', 'swapPrivate', 'POST', $params, null, null, array("cost" => 20));
    }
    public function swapprivate_post_v3_trade_positionall($params = array()) {
        return $this->request('v3/trade/positionAll', 'swapPrivate', 'POST', $params, null, null, array("cost" => 100));
    }
    public function swapprivate_post_v3_position_leverage($params = array()) {
        return $this->request('v3/position/leverage', 'swapPrivate', 'POST', $params, null, null, array("cost" => 20));
    }
    public function swapprivate_post_v3_position_mode($params = array()) {
        return $this->request('v3/position/mode', 'swapPrivate', 'POST', $params, null, null, array("cost" => 20));
    }
    public function swapprivate_post_v3_trade_position_margin($params = array()) {
        return $this->request('v3/trade/position/margin', 'swapPrivate', 'POST', $params, null, null, array("cost" => 20));
    }
    public function swapprivate_delete_v3_trade_order($params = array()) {
        return $this->request('v3/trade/order', 'swapPrivate', 'DELETE', $params, null, null, array("cost" => 2));
    }
    public function swapprivate_delete_v3_trade_batchorders($params = array()) {
        return $this->request('v3/trade/batchOrders', 'swapPrivate', 'DELETE', $params, null, null, array("cost" => 20));
    }
    public function swapprivate_delete_v3_trade_allorders($params = array()) {
        return $this->request('v3/trade/allOrders', 'swapPrivate', 'DELETE', $params, null, null, array("cost" => 20));
    }
    public function publicGetMarkets($params = array()) {
        return $this->request('markets', 'public', 'GET', $params, null, null, array("cost" => 20));
    }
    public function publicGetMarketsSymbol($params = array()) {
        return $this->request('markets/{symbol}', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function publicGetCurrencies($params = array()) {
        return $this->request('currencies', 'public', 'GET', $params, null, null, array("cost" => 20));
    }
    public function publicGetCurrenciesCurrency($params = array()) {
        return $this->request('currencies/{currency}', 'public', 'GET', $params, null, null, array("cost" => 20));
    }
    public function publicGetV2Currencies($params = array()) {
        return $this->request('v2/currencies', 'public', 'GET', $params, null, null, array("cost" => 20));
    }
    public function publicGetV2CurrenciesCurrency($params = array()) {
        return $this->request('v2/currencies/{currency}', 'public', 'GET', $params, null, null, array("cost" => 20));
    }
    public function publicGetTimestamp($params = array()) {
        return $this->request('timestamp', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function publicGetMarketsPrice($params = array()) {
        return $this->request('markets/price', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function publicGetMarketsSymbolPrice($params = array()) {
        return $this->request('markets/{symbol}/price', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function publicGetMarketsMarkPrice($params = array()) {
        return $this->request('markets/markPrice', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function publicGetMarketsSymbolMarkPrice($params = array()) {
        return $this->request('markets/{symbol}/markPrice', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function publicGetMarketsSymbolMarkPriceComponents($params = array()) {
        return $this->request('markets/{symbol}/markPriceComponents', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function publicGetMarketsSymbolOrderBook($params = array()) {
        return $this->request('markets/{symbol}/orderBook', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function publicGetMarketsSymbolCandles($params = array()) {
        return $this->request('markets/{symbol}/candles', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function publicGetMarketsSymbolTrades($params = array()) {
        return $this->request('markets/{symbol}/trades', 'public', 'GET', $params, null, null, array("cost" => 20));
    }
    public function publicGetMarketsTicker24h($params = array()) {
        return $this->request('markets/ticker24h', 'public', 'GET', $params, null, null, array("cost" => 20));
    }
    public function publicGetMarketsSymbolTicker24h($params = array()) {
        return $this->request('markets/{symbol}/ticker24h', 'public', 'GET', $params, null, null, array("cost" => 20));
    }
    public function publicGetMarketsCollateralInfo($params = array()) {
        return $this->request('markets/collateralInfo', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function publicGetMarketsCurrencyCollateralInfo($params = array()) {
        return $this->request('markets/{currency}/collateralInfo', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function publicGetMarketsBorrowRatesInfo($params = array()) {
        return $this->request('markets/borrowRatesInfo', 'public', 'GET', $params, null, null, array("cost" => 1));
    }
    public function privateGetAccounts($params = array()) {
        return $this->request('accounts', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function privateGetAccountsBalances($params = array()) {
        return $this->request('accounts/balances', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function privateGetAccountsIdBalances($params = array()) {
        return $this->request('accounts/{id}/balances', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function privateGetAccountsActivity($params = array()) {
        return $this->request('accounts/activity', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function privateGetAccountsTransfer($params = array()) {
        return $this->request('accounts/transfer', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function privateGetAccountsTransferId($params = array()) {
        return $this->request('accounts/transfer/{id}', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function privateGetFeeinfo($params = array()) {
        return $this->request('feeinfo', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function privateGetAccountsInterestHistory($params = array()) {
        return $this->request('accounts/interest/history', 'private', 'GET', $params, null, null, array("cost" => 1));
    }
    public function privateGetSubaccounts($params = array()) {
        return $this->request('subaccounts', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function privateGetSubaccountsBalances($params = array()) {
        return $this->request('subaccounts/balances', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function privateGetSubaccountsIdBalances($params = array()) {
        return $this->request('subaccounts/{id}/balances', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function privateGetSubaccountsTransfer($params = array()) {
        return $this->request('subaccounts/transfer', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function privateGetSubaccountsTransferId($params = array()) {
        return $this->request('subaccounts/transfer/{id}', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function privateGetWalletsAddresses($params = array()) {
        return $this->request('wallets/addresses', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function privateGetWalletsAddressesCurrency($params = array()) {
        return $this->request('wallets/addresses/{currency}', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function privateGetWalletsActivity($params = array()) {
        return $this->request('wallets/activity', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function privateGetMarginAccountMargin($params = array()) {
        return $this->request('margin/accountMargin', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function privateGetMarginBorrowStatus($params = array()) {
        return $this->request('margin/borrowStatus', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function privateGetMarginMaxSize($params = array()) {
        return $this->request('margin/maxSize', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function privateGetOrders($params = array()) {
        return $this->request('orders', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function privateGetOrdersId($params = array()) {
        return $this->request('orders/{id}', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function privateGetOrdersKillSwitchStatus($params = array()) {
        return $this->request('orders/killSwitchStatus', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function privateGetSmartorders($params = array()) {
        return $this->request('smartorders', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function privateGetSmartordersId($params = array()) {
        return $this->request('smartorders/{id}', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function privateGetOrdersHistory($params = array()) {
        return $this->request('orders/history', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function privateGetSmartordersHistory($params = array()) {
        return $this->request('smartorders/history', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function privateGetTrades($params = array()) {
        return $this->request('trades', 'private', 'GET', $params, null, null, array("cost" => 20));
    }
    public function privateGetOrdersIdTrades($params = array()) {
        return $this->request('orders/{id}/trades', 'private', 'GET', $params, null, null, array("cost" => 4));
    }
    public function privatePostAccountsTransfer($params = array()) {
        return $this->request('accounts/transfer', 'private', 'POST', $params, null, null, array("cost" => 4));
    }
    public function privatePostSubaccountsTransfer($params = array()) {
        return $this->request('subaccounts/transfer', 'private', 'POST', $params, null, null, array("cost" => 20));
    }
    public function privatePostWalletsAddress($params = array()) {
        return $this->request('wallets/address', 'private', 'POST', $params, null, null, array("cost" => 20));
    }
    public function privatePostWalletsWithdraw($params = array()) {
        return $this->request('wallets/withdraw', 'private', 'POST', $params, null, null, array("cost" => 20));
    }
    public function privatePostV2WalletsWithdraw($params = array()) {
        return $this->request('v2/wallets/withdraw', 'private', 'POST', $params, null, null, array("cost" => 20));
    }
    public function privatePostOrders($params = array()) {
        return $this->request('orders', 'private', 'POST', $params, null, null, array("cost" => 4));
    }
    public function privatePostOrdersBatch($params = array()) {
        return $this->request('orders/batch', 'private', 'POST', $params, null, null, array("cost" => 20));
    }
    public function privatePostOrdersKillSwitch($params = array()) {
        return $this->request('orders/killSwitch', 'private', 'POST', $params, null, null, array("cost" => 4));
    }
    public function privatePostSmartorders($params = array()) {
        return $this->request('smartorders', 'private', 'POST', $params, null, null, array("cost" => 4));
    }
    public function privateDeleteOrdersId($params = array()) {
        return $this->request('orders/{id}', 'private', 'DELETE', $params, null, null, array("cost" => 4));
    }
    public function privateDeleteOrdersCancelByIds($params = array()) {
        return $this->request('orders/cancelByIds', 'private', 'DELETE', $params, null, null, array("cost" => 20));
    }
    public function privateDeleteOrders($params = array()) {
        return $this->request('orders', 'private', 'DELETE', $params, null, null, array("cost" => 20));
    }
    public function privateDeleteSmartordersId($params = array()) {
        return $this->request('smartorders/{id}', 'private', 'DELETE', $params, null, null, array("cost" => 4));
    }
    public function privateDeleteSmartordersCancelByIds($params = array()) {
        return $this->request('smartorders/cancelByIds', 'private', 'DELETE', $params, null, null, array("cost" => 20));
    }
    public function privateDeleteSmartorders($params = array()) {
        return $this->request('smartorders', 'private', 'DELETE', $params, null, null, array("cost" => 20));
    }
    public function privatePutOrdersId($params = array()) {
        return $this->request('orders/{id}', 'private', 'PUT', $params, null, null, array("cost" => 20));
    }
    public function privatePutSmartordersId($params = array()) {
        return $this->request('smartorders/{id}', 'private', 'PUT', $params, null, null, array("cost" => 20));
    }
    public function swapPublicGetV3MarketAllInstruments($params = array()) {
        return $this->request('v3/market/allInstruments', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swapPublicGetV3MarketInstruments($params = array()) {
        return $this->request('v3/market/instruments', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swapPublicGetV3MarketOrderBook($params = array()) {
        return $this->request('v3/market/orderBook', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swapPublicGetV3MarketCandles($params = array()) {
        return $this->request('v3/market/candles', 'swapPublic', 'GET', $params, null, null, array("cost" => 10));
    }
    public function swapPublicGetV3MarketIndexPriceCandlesticks($params = array()) {
        return $this->request('v3/market/indexPriceCandlesticks', 'swapPublic', 'GET', $params, null, null, array("cost" => 10));
    }
    public function swapPublicGetV3MarketPremiumIndexCandlesticks($params = array()) {
        return $this->request('v3/market/premiumIndexCandlesticks', 'swapPublic', 'GET', $params, null, null, array("cost" => 10));
    }
    public function swapPublicGetV3MarketMarkPriceCandlesticks($params = array()) {
        return $this->request('v3/market/markPriceCandlesticks', 'swapPublic', 'GET', $params, null, null, array("cost" => 10));
    }
    public function swapPublicGetV3MarketTrades($params = array()) {
        return $this->request('v3/market/trades', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swapPublicGetV3MarketLiquidationOrder($params = array()) {
        return $this->request('v3/market/liquidationOrder', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swapPublicGetV3MarketTickers($params = array()) {
        return $this->request('v3/market/tickers', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swapPublicGetV3MarketMarkPrice($params = array()) {
        return $this->request('v3/market/markPrice', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swapPublicGetV3MarketIndexPrice($params = array()) {
        return $this->request('v3/market/indexPrice', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swapPublicGetV3MarketIndexPriceComponents($params = array()) {
        return $this->request('v3/market/indexPriceComponents', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swapPublicGetV3MarketFundingRate($params = array()) {
        return $this->request('v3/market/fundingRate', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swapPublicGetV3MarketOpenInterest($params = array()) {
        return $this->request('v3/market/openInterest', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swapPublicGetV3MarketInsurance($params = array()) {
        return $this->request('v3/market/insurance', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swapPublicGetV3MarketRiskLimit($params = array()) {
        return $this->request('v3/market/riskLimit', 'swapPublic', 'GET', $params, null, null, array("cost" => 0.6666666666666666));
    }
    public function swapPrivateGetV3AccountBalance($params = array()) {
        return $this->request('v3/account/balance', 'swapPrivate', 'GET', $params, null, null, array("cost" => 4));
    }
    public function swapPrivateGetV3AccountBills($params = array()) {
        return $this->request('v3/account/bills', 'swapPrivate', 'GET', $params, null, null, array("cost" => 20));
    }
    public function swapPrivateGetV3TradeOrderOpens($params = array()) {
        return $this->request('v3/trade/order/opens', 'swapPrivate', 'GET', $params, null, null, array("cost" => 20));
    }
    public function swapPrivateGetV3TradeOrderTrades($params = array()) {
        return $this->request('v3/trade/order/trades', 'swapPrivate', 'GET', $params, null, null, array("cost" => 20));
    }
    public function swapPrivateGetV3TradeOrderHistory($params = array()) {
        return $this->request('v3/trade/order/history', 'swapPrivate', 'GET', $params, null, null, array("cost" => 20));
    }
    public function swapPrivateGetV3TradePositionOpens($params = array()) {
        return $this->request('v3/trade/position/opens', 'swapPrivate', 'GET', $params, null, null, array("cost" => 20));
    }
    public function swapPrivateGetV3TradePositionHistory($params = array()) {
        return $this->request('v3/trade/position/history', 'swapPrivate', 'GET', $params, null, null, array("cost" => 20));
    }
    public function swapPrivateGetV3PositionLeverages($params = array()) {
        return $this->request('v3/position/leverages', 'swapPrivate', 'GET', $params, null, null, array("cost" => 20));
    }
    public function swapPrivateGetV3PositionMode($params = array()) {
        return $this->request('v3/position/mode', 'swapPrivate', 'GET', $params, null, null, array("cost" => 20));
    }
    public function swapPrivatePostV3TradeOrder($params = array()) {
        return $this->request('v3/trade/order', 'swapPrivate', 'POST', $params, null, null, array("cost" => 4));
    }
    public function swapPrivatePostV3TradeOrders($params = array()) {
        return $this->request('v3/trade/orders', 'swapPrivate', 'POST', $params, null, null, array("cost" => 40));
    }
    public function swapPrivatePostV3TradePosition($params = array()) {
        return $this->request('v3/trade/position', 'swapPrivate', 'POST', $params, null, null, array("cost" => 20));
    }
    public function swapPrivatePostV3TradePositionAll($params = array()) {
        return $this->request('v3/trade/positionAll', 'swapPrivate', 'POST', $params, null, null, array("cost" => 100));
    }
    public function swapPrivatePostV3PositionLeverage($params = array()) {
        return $this->request('v3/position/leverage', 'swapPrivate', 'POST', $params, null, null, array("cost" => 20));
    }
    public function swapPrivatePostV3PositionMode($params = array()) {
        return $this->request('v3/position/mode', 'swapPrivate', 'POST', $params, null, null, array("cost" => 20));
    }
    public function swapPrivatePostV3TradePositionMargin($params = array()) {
        return $this->request('v3/trade/position/margin', 'swapPrivate', 'POST', $params, null, null, array("cost" => 20));
    }
    public function swapPrivateDeleteV3TradeOrder($params = array()) {
        return $this->request('v3/trade/order', 'swapPrivate', 'DELETE', $params, null, null, array("cost" => 2));
    }
    public function swapPrivateDeleteV3TradeBatchOrders($params = array()) {
        return $this->request('v3/trade/batchOrders', 'swapPrivate', 'DELETE', $params, null, null, array("cost" => 20));
    }
    public function swapPrivateDeleteV3TradeAllOrders($params = array()) {
        return $this->request('v3/trade/allOrders', 'swapPrivate', 'DELETE', $params, null, null, array("cost" => 20));
    }
}
