<?php

namespace ccxt\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 toobit extends \ccxt\Exchange {
    public function common_get_api_v1_time($params = array()) {
        return $this->request('api/v1/time', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function common_get_api_v1_ping($params = array()) {
        return $this->request('api/v1/ping', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function common_get_api_v1_exchangeinfo($params = array()) {
        return $this->request('api/v1/exchangeInfo', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function common_get_quote_v1_depth($params = array()) {
        return $this->request('quote/v1/depth', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function common_get_quote_v1_depth_merged($params = array()) {
        return $this->request('quote/v1/depth/merged', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function common_get_quote_v1_trades($params = array()) {
        return $this->request('quote/v1/trades', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function common_get_quote_v1_klines($params = array()) {
        return $this->request('quote/v1/klines', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function common_get_quote_v1_index_klines($params = array()) {
        return $this->request('quote/v1/index/klines', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function common_get_quote_v1_markprice_klines($params = array()) {
        return $this->request('quote/v1/markPrice/klines', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function common_get_quote_v1_markprice($params = array()) {
        return $this->request('quote/v1/markPrice', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function common_get_quote_v1_index($params = array()) {
        return $this->request('quote/v1/index', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function common_get_quote_v1_ticker_24hr($params = array()) {
        return $this->request('quote/v1/ticker/24hr', 'common', 'GET', $params, null, null, array("cost" => 40));
    }
    public function common_get_quote_v1_contract_ticker_24hr($params = array()) {
        return $this->request('quote/v1/contract/ticker/24hr', 'common', 'GET', $params, null, null, array("cost" => 40));
    }
    public function common_get_quote_v1_ticker_price($params = array()) {
        return $this->request('quote/v1/ticker/price', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function common_get_quote_v1_ticker_bookticker($params = array()) {
        return $this->request('quote/v1/ticker/bookTicker', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function common_get_api_v1_futures_fundingrate($params = array()) {
        return $this->request('api/v1/futures/fundingRate', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function common_get_api_v1_futures_historyfundingrate($params = array()) {
        return $this->request('api/v1/futures/historyFundingRate', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function private_get_api_v1_account($params = array()) {
        return $this->request('api/v1/account', 'private', 'GET', $params, null, null, array("cost" => 5));
    }
    public function private_get_api_v1_account_checkapikey($params = array()) {
        return $this->request('api/v1/account/checkApiKey', 'private', 'GET', $params, null, null, array("cost" => 1));
    }
    public function private_get_api_v1_spot_order($params = array()) {
        return $this->request('api/v1/spot/order', 'private', 'GET', $params, null, null, array("cost" => 1.67));
    }
    public function private_get_api_v1_spot_openorders($params = array()) {
        return $this->request('api/v1/spot/openOrders', 'private', 'GET', $params, null, null, array("cost" => 1.67));
    }
    public function private_get_api_v1_futures_openorders($params = array()) {
        return $this->request('api/v1/futures/openOrders', 'private', 'GET', $params, null, null, array("cost" => 1.67));
    }
    public function private_get_api_v1_spot_tradeorders($params = array()) {
        return $this->request('api/v1/spot/tradeOrders', 'private', 'GET', $params, null, null, array("cost" => 8.35));
    }
    public function private_get_api_v1_futures_historyorders($params = array()) {
        return $this->request('api/v1/futures/historyOrders', 'private', 'GET', $params, null, null, array("cost" => 8.35));
    }
    public function private_get_api_v1_account_trades($params = array()) {
        return $this->request('api/v1/account/trades', 'private', 'GET', $params, null, null, array("cost" => 8.35));
    }
    public function private_get_api_v1_account_balanceflow($params = array()) {
        return $this->request('api/v1/account/balanceFlow', 'private', 'GET', $params, null, null, array("cost" => 5));
    }
    public function private_get_api_v1_account_depositorders($params = array()) {
        return $this->request('api/v1/account/depositOrders', 'private', 'GET', $params, null, null, array("cost" => 5));
    }
    public function private_get_api_v1_account_withdraworders($params = array()) {
        return $this->request('api/v1/account/withdrawOrders', 'private', 'GET', $params, null, null, array("cost" => 5));
    }
    public function private_get_api_v1_account_deposit_address($params = array()) {
        return $this->request('api/v1/account/deposit/address', 'private', 'GET', $params, null, null, array("cost" => 1));
    }
    public function private_get_api_v1_subaccount($params = array()) {
        return $this->request('api/v1/subAccount', 'private', 'GET', $params, null, null, array("cost" => 5));
    }
    public function private_get_api_v1_futures_accountleverage($params = array()) {
        return $this->request('api/v1/futures/accountLeverage', 'private', 'GET', $params, null, null, array("cost" => 1));
    }
    public function private_get_api_v1_futures_order($params = array()) {
        return $this->request('api/v1/futures/order', 'private', 'GET', $params, null, null, array("cost" => 1.67));
    }
    public function private_get_api_v1_futures_positions($params = array()) {
        return $this->request('api/v1/futures/positions', 'private', 'GET', $params, null, null, array("cost" => 8.35));
    }
    public function private_get_api_v1_futures_balance($params = array()) {
        return $this->request('api/v1/futures/balance', 'private', 'GET', $params, null, null, array("cost" => 5));
    }
    public function private_get_api_v1_futures_usertrades($params = array()) {
        return $this->request('api/v1/futures/userTrades', 'private', 'GET', $params, null, null, array("cost" => 8.35));
    }
    public function private_get_api_v1_futures_balanceflow($params = array()) {
        return $this->request('api/v1/futures/balanceFlow', 'private', 'GET', $params, null, null, array("cost" => 5));
    }
    public function private_get_api_v1_futures_commissionrate($params = array()) {
        return $this->request('api/v1/futures/commissionRate', 'private', 'GET', $params, null, null, array("cost" => 5));
    }
    public function private_get_api_v1_futures_todaypnl($params = array()) {
        return $this->request('api/v1/futures/todayPnl', 'private', 'GET', $params, null, null, array("cost" => 5));
    }
    public function private_post_api_v1_spot_ordertest($params = array()) {
        return $this->request('api/v1/spot/orderTest', 'private', 'POST', $params, null, null, array("cost" => 1.67));
    }
    public function private_post_api_v1_spot_order($params = array()) {
        return $this->request('api/v1/spot/order', 'private', 'POST', $params, null, null, array("cost" => 1.67));
    }
    public function private_post_api_v1_futures_order($params = array()) {
        return $this->request('api/v1/futures/order', 'private', 'POST', $params, null, null, array("cost" => 1.67));
    }
    public function private_post_api_v1_spot_batchorders($params = array()) {
        return $this->request('api/v1/spot/batchOrders', 'private', 'POST', $params, null, null, array("cost" => 3.34));
    }
    public function private_post_api_v1_subaccount_transfer($params = array()) {
        return $this->request('api/v1/subAccount/transfer', 'private', 'POST', $params, null, null, array("cost" => 1));
    }
    public function private_post_api_v1_account_withdraw($params = array()) {
        return $this->request('api/v1/account/withdraw', 'private', 'POST', $params, null, null, array("cost" => 1));
    }
    public function private_post_api_v1_futures_margintype($params = array()) {
        return $this->request('api/v1/futures/marginType', 'private', 'POST', $params, null, null, array("cost" => 1));
    }
    public function private_post_api_v1_futures_leverage($params = array()) {
        return $this->request('api/v1/futures/leverage', 'private', 'POST', $params, null, null, array("cost" => 1));
    }
    public function private_post_api_v1_futures_batchorders($params = array()) {
        return $this->request('api/v1/futures/batchOrders', 'private', 'POST', $params, null, null, array("cost" => 3.34));
    }
    public function private_post_api_v1_futures_position_trading_stop($params = array()) {
        return $this->request('api/v1/futures/position/trading-stop', 'private', 'POST', $params, null, null, array("cost" => 5.01));
    }
    public function private_post_api_v1_futures_positionmargin($params = array()) {
        return $this->request('api/v1/futures/positionMargin', 'private', 'POST', $params, null, null, array("cost" => 1));
    }
    public function private_post_api_v1_userdatastream($params = array()) {
        return $this->request('api/v1/userDataStream', 'private', 'POST', $params, null, null, array("cost" => 1));
    }
    public function private_post_api_v1_listenkey($params = array()) {
        return $this->request('api/v1/listenKey', 'private', 'POST', $params, null, null, array("cost" => 1));
    }
    public function private_delete_api_v1_spot_order($params = array()) {
        return $this->request('api/v1/spot/order', 'private', 'DELETE', $params, null, null, array("cost" => 1.67));
    }
    public function private_delete_api_v1_futures_order($params = array()) {
        return $this->request('api/v1/futures/order', 'private', 'DELETE', $params, null, null, array("cost" => 1.67));
    }
    public function private_delete_api_v1_spot_openorders($params = array()) {
        return $this->request('api/v1/spot/openOrders', 'private', 'DELETE', $params, null, null, array("cost" => 8.35));
    }
    public function private_delete_api_v1_futures_batchorders($params = array()) {
        return $this->request('api/v1/futures/batchOrders', 'private', 'DELETE', $params, null, null, array("cost" => 8.35));
    }
    public function private_delete_api_v1_spot_cancelorderbyids($params = array()) {
        return $this->request('api/v1/spot/cancelOrderByIds', 'private', 'DELETE', $params, null, null, array("cost" => 8.35));
    }
    public function private_delete_api_v1_futures_cancelorderbyids($params = array()) {
        return $this->request('api/v1/futures/cancelOrderByIds', 'private', 'DELETE', $params, null, null, array("cost" => 8.35));
    }
    public function private_delete_api_v1_listenkey($params = array()) {
        return $this->request('api/v1/listenKey', 'private', 'DELETE', $params, null, null, array("cost" => 1));
    }
    public function private_put_api_v1_listenkey($params = array()) {
        return $this->request('api/v1/listenKey', 'private', 'PUT', $params, null, null, array("cost" => 1));
    }
    public function commonGetApiV1Time($params = array()) {
        return $this->request('api/v1/time', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function commonGetApiV1Ping($params = array()) {
        return $this->request('api/v1/ping', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function commonGetApiV1ExchangeInfo($params = array()) {
        return $this->request('api/v1/exchangeInfo', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function commonGetQuoteV1Depth($params = array()) {
        return $this->request('quote/v1/depth', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function commonGetQuoteV1DepthMerged($params = array()) {
        return $this->request('quote/v1/depth/merged', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function commonGetQuoteV1Trades($params = array()) {
        return $this->request('quote/v1/trades', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function commonGetQuoteV1Klines($params = array()) {
        return $this->request('quote/v1/klines', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function commonGetQuoteV1IndexKlines($params = array()) {
        return $this->request('quote/v1/index/klines', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function commonGetQuoteV1MarkPriceKlines($params = array()) {
        return $this->request('quote/v1/markPrice/klines', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function commonGetQuoteV1MarkPrice($params = array()) {
        return $this->request('quote/v1/markPrice', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function commonGetQuoteV1Index($params = array()) {
        return $this->request('quote/v1/index', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function commonGetQuoteV1Ticker24hr($params = array()) {
        return $this->request('quote/v1/ticker/24hr', 'common', 'GET', $params, null, null, array("cost" => 40));
    }
    public function commonGetQuoteV1ContractTicker24hr($params = array()) {
        return $this->request('quote/v1/contract/ticker/24hr', 'common', 'GET', $params, null, null, array("cost" => 40));
    }
    public function commonGetQuoteV1TickerPrice($params = array()) {
        return $this->request('quote/v1/ticker/price', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function commonGetQuoteV1TickerBookTicker($params = array()) {
        return $this->request('quote/v1/ticker/bookTicker', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function commonGetApiV1FuturesFundingRate($params = array()) {
        return $this->request('api/v1/futures/fundingRate', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function commonGetApiV1FuturesHistoryFundingRate($params = array()) {
        return $this->request('api/v1/futures/historyFundingRate', 'common', 'GET', $params, null, null, array("cost" => 1));
    }
    public function privateGetApiV1Account($params = array()) {
        return $this->request('api/v1/account', 'private', 'GET', $params, null, null, array("cost" => 5));
    }
    public function privateGetApiV1AccountCheckApiKey($params = array()) {
        return $this->request('api/v1/account/checkApiKey', 'private', 'GET', $params, null, null, array("cost" => 1));
    }
    public function privateGetApiV1SpotOrder($params = array()) {
        return $this->request('api/v1/spot/order', 'private', 'GET', $params, null, null, array("cost" => 1.67));
    }
    public function privateGetApiV1SpotOpenOrders($params = array()) {
        return $this->request('api/v1/spot/openOrders', 'private', 'GET', $params, null, null, array("cost" => 1.67));
    }
    public function privateGetApiV1FuturesOpenOrders($params = array()) {
        return $this->request('api/v1/futures/openOrders', 'private', 'GET', $params, null, null, array("cost" => 1.67));
    }
    public function privateGetApiV1SpotTradeOrders($params = array()) {
        return $this->request('api/v1/spot/tradeOrders', 'private', 'GET', $params, null, null, array("cost" => 8.35));
    }
    public function privateGetApiV1FuturesHistoryOrders($params = array()) {
        return $this->request('api/v1/futures/historyOrders', 'private', 'GET', $params, null, null, array("cost" => 8.35));
    }
    public function privateGetApiV1AccountTrades($params = array()) {
        return $this->request('api/v1/account/trades', 'private', 'GET', $params, null, null, array("cost" => 8.35));
    }
    public function privateGetApiV1AccountBalanceFlow($params = array()) {
        return $this->request('api/v1/account/balanceFlow', 'private', 'GET', $params, null, null, array("cost" => 5));
    }
    public function privateGetApiV1AccountDepositOrders($params = array()) {
        return $this->request('api/v1/account/depositOrders', 'private', 'GET', $params, null, null, array("cost" => 5));
    }
    public function privateGetApiV1AccountWithdrawOrders($params = array()) {
        return $this->request('api/v1/account/withdrawOrders', 'private', 'GET', $params, null, null, array("cost" => 5));
    }
    public function privateGetApiV1AccountDepositAddress($params = array()) {
        return $this->request('api/v1/account/deposit/address', 'private', 'GET', $params, null, null, array("cost" => 1));
    }
    public function privateGetApiV1SubAccount($params = array()) {
        return $this->request('api/v1/subAccount', 'private', 'GET', $params, null, null, array("cost" => 5));
    }
    public function privateGetApiV1FuturesAccountLeverage($params = array()) {
        return $this->request('api/v1/futures/accountLeverage', 'private', 'GET', $params, null, null, array("cost" => 1));
    }
    public function privateGetApiV1FuturesOrder($params = array()) {
        return $this->request('api/v1/futures/order', 'private', 'GET', $params, null, null, array("cost" => 1.67));
    }
    public function privateGetApiV1FuturesPositions($params = array()) {
        return $this->request('api/v1/futures/positions', 'private', 'GET', $params, null, null, array("cost" => 8.35));
    }
    public function privateGetApiV1FuturesBalance($params = array()) {
        return $this->request('api/v1/futures/balance', 'private', 'GET', $params, null, null, array("cost" => 5));
    }
    public function privateGetApiV1FuturesUserTrades($params = array()) {
        return $this->request('api/v1/futures/userTrades', 'private', 'GET', $params, null, null, array("cost" => 8.35));
    }
    public function privateGetApiV1FuturesBalanceFlow($params = array()) {
        return $this->request('api/v1/futures/balanceFlow', 'private', 'GET', $params, null, null, array("cost" => 5));
    }
    public function privateGetApiV1FuturesCommissionRate($params = array()) {
        return $this->request('api/v1/futures/commissionRate', 'private', 'GET', $params, null, null, array("cost" => 5));
    }
    public function privateGetApiV1FuturesTodayPnl($params = array()) {
        return $this->request('api/v1/futures/todayPnl', 'private', 'GET', $params, null, null, array("cost" => 5));
    }
    public function privatePostApiV1SpotOrderTest($params = array()) {
        return $this->request('api/v1/spot/orderTest', 'private', 'POST', $params, null, null, array("cost" => 1.67));
    }
    public function privatePostApiV1SpotOrder($params = array()) {
        return $this->request('api/v1/spot/order', 'private', 'POST', $params, null, null, array("cost" => 1.67));
    }
    public function privatePostApiV1FuturesOrder($params = array()) {
        return $this->request('api/v1/futures/order', 'private', 'POST', $params, null, null, array("cost" => 1.67));
    }
    public function privatePostApiV1SpotBatchOrders($params = array()) {
        return $this->request('api/v1/spot/batchOrders', 'private', 'POST', $params, null, null, array("cost" => 3.34));
    }
    public function privatePostApiV1SubAccountTransfer($params = array()) {
        return $this->request('api/v1/subAccount/transfer', 'private', 'POST', $params, null, null, array("cost" => 1));
    }
    public function privatePostApiV1AccountWithdraw($params = array()) {
        return $this->request('api/v1/account/withdraw', 'private', 'POST', $params, null, null, array("cost" => 1));
    }
    public function privatePostApiV1FuturesMarginType($params = array()) {
        return $this->request('api/v1/futures/marginType', 'private', 'POST', $params, null, null, array("cost" => 1));
    }
    public function privatePostApiV1FuturesLeverage($params = array()) {
        return $this->request('api/v1/futures/leverage', 'private', 'POST', $params, null, null, array("cost" => 1));
    }
    public function privatePostApiV1FuturesBatchOrders($params = array()) {
        return $this->request('api/v1/futures/batchOrders', 'private', 'POST', $params, null, null, array("cost" => 3.34));
    }
    public function privatePostApiV1FuturesPositionTradingStop($params = array()) {
        return $this->request('api/v1/futures/position/trading-stop', 'private', 'POST', $params, null, null, array("cost" => 5.01));
    }
    public function privatePostApiV1FuturesPositionMargin($params = array()) {
        return $this->request('api/v1/futures/positionMargin', 'private', 'POST', $params, null, null, array("cost" => 1));
    }
    public function privatePostApiV1UserDataStream($params = array()) {
        return $this->request('api/v1/userDataStream', 'private', 'POST', $params, null, null, array("cost" => 1));
    }
    public function privatePostApiV1ListenKey($params = array()) {
        return $this->request('api/v1/listenKey', 'private', 'POST', $params, null, null, array("cost" => 1));
    }
    public function privateDeleteApiV1SpotOrder($params = array()) {
        return $this->request('api/v1/spot/order', 'private', 'DELETE', $params, null, null, array("cost" => 1.67));
    }
    public function privateDeleteApiV1FuturesOrder($params = array()) {
        return $this->request('api/v1/futures/order', 'private', 'DELETE', $params, null, null, array("cost" => 1.67));
    }
    public function privateDeleteApiV1SpotOpenOrders($params = array()) {
        return $this->request('api/v1/spot/openOrders', 'private', 'DELETE', $params, null, null, array("cost" => 8.35));
    }
    public function privateDeleteApiV1FuturesBatchOrders($params = array()) {
        return $this->request('api/v1/futures/batchOrders', 'private', 'DELETE', $params, null, null, array("cost" => 8.35));
    }
    public function privateDeleteApiV1SpotCancelOrderByIds($params = array()) {
        return $this->request('api/v1/spot/cancelOrderByIds', 'private', 'DELETE', $params, null, null, array("cost" => 8.35));
    }
    public function privateDeleteApiV1FuturesCancelOrderByIds($params = array()) {
        return $this->request('api/v1/futures/cancelOrderByIds', 'private', 'DELETE', $params, null, null, array("cost" => 8.35));
    }
    public function privateDeleteApiV1ListenKey($params = array()) {
        return $this->request('api/v1/listenKey', 'private', 'DELETE', $params, null, null, array("cost" => 1));
    }
    public function privatePutApiV1ListenKey($params = array()) {
        return $this->request('api/v1/listenKey', 'private', 'PUT', $params, null, null, array("cost" => 1));
    }
}
