github.com/frankrap/okex-api@v1.0.4/uri_constants.go (about)

     1  package okex
     2  
     3  /*
     4   OKEX api config info
     5   @author Lingting Fu
     6   @date 2018-12-27
     7   @version 1.0.0
     8  */
     9  
    10  const (
    11  	OKEX_TIME_URI = "/api/general/v3/time"
    12  
    13  	ACCOUNT_CURRENCIES                 = "/api/account/v3/currencies"
    14  	ACCOUNT_DEPOSIT_ADDRESS            = "/api/account/v3/deposit/address"
    15  	ACCOUNT_DEPOSIT_HISTORY            = "/api/account/v3/deposit/history"
    16  	ACCOUNT_DEPOSIT_HISTORY_CURRENCY   = "/api/account/v3/deposit/history/{currency}"
    17  	ACCOUNT_LEDGER                     = "/api/account/v3/ledger"
    18  	ACCOUNT_WALLET                     = "/api/account/v3/wallet"
    19  	ACCOUNT_WALLET_CURRENCY            = "/api/account/v3/wallet/{currency}"
    20  	ACCOUNT_WITHRAWAL                  = "/api/account/v3/withdrawal"
    21  	ACCOUNT_WITHRAWAL_FEE              = "/api/account/v3/withdrawal/fee"
    22  	ACCOUNT_WITHRAWAL_HISTORY          = "/api/account/v3/withdrawal/history"
    23  	ACCOUNT_WITHRAWAL_HISTORY_CURRENCY = "/api/account/v3/withdrawal/history/{currency}"
    24  	ACCOUNT_TRANSFER                   = "/api/account/v3/transfer"
    25  
    26  	FUTURES_RATE                       = "/api/futures/v3/rate"
    27  	FUTURES_INSTRUMENTS                = "/api/futures/v3/instruments"
    28  	FUTURES_CURRENCIES                 = "/api/futures/v3/instruments/currencies"
    29  	FUTURES_INSTRUMENT_BOOK            = "/api/futures/v3/instruments/{instrument_id}/book"
    30  	FUTURES_TICKERS                    = "/api/futures/v3/instruments/ticker"
    31  	FUTURES_INSTRUMENT_TICKER          = "/api/futures/v3/instruments/{instrument_id}/ticker"
    32  	FUTURES_INSTRUMENT_TRADES          = "/api/futures/v3/instruments/{instrument_id}/trades"
    33  	FUTURES_INSTRUMENT_CANDLES         = "/api/futures/v3/instruments/{instrument_id}/candles"
    34  	FUTURES_INSTRUMENT_MARK_PRICE      = "/api/futures/v3/instruments/{instrument_id}/mark_price"
    35  	FUTURES_INSTRUMENT_INDEX           = "/api/futures/v3/instruments/{instrument_id}/index"
    36  	FUTURES_INSTRUMENT_ESTIMATED_PRICE = "/api/futures/v3/instruments/{instrument_id}/estimated_price"
    37  	FUTURES_INSTRUMENT_OPEN_INTEREST   = "/api/futures/v3/instruments/{instrument_id}/open_interest"
    38  	FUTURES_INSTRUMENT_PRICE_LIMIT     = "/api/futures/v3/instruments/{instrument_id}/price_limit"
    39  	FUTURES_INSTRUMENT_LIQUIDATION     = "/api/futures/v3/instruments/{instrument_id}/liquidation"
    40  	FUTURES_POSITION                   = "/api/futures/v3/position"
    41  	FUTURES_INSTRUMENT_POSITION        = "/api/futures/v3/{instrument_id}/position"
    42  	FUTURES_ACCOUNTS                   = "/api/futures/v3/accounts"
    43  	//FUTURES_ACCOUNT_CURRENCY_INFO         = "/api/futures/v3/accounts/{currency}"
    44  	FUTURES_ACCOUNT_CURRENCY_INFO         = "/api/futures/v3/accounts/{underlying}"
    45  	FUTURES_ACCOUNT_CURRENCY_LEDGER       = "/api/futures/v3/accounts/{currency}/ledger"
    46  	FUTURES_ACCOUNT_CURRENCY_LEVERAGE     = "/api/futures/v3/accounts/{underlying}/leverage"
    47  	FUTURES_ACCOUNT_MARGIN_MODE           = "/api/futures/v3/accounts/margin_mode"
    48  	FUTURES_ACCOUNT_INSTRUMENT_HOLDS      = "/api/futures/v3/accounts/{instrument_id}/holds"
    49  	FUTURES_ORDER                         = "/api/futures/v3/order"
    50  	FUTURES_ORDERS                        = "/api/futures/v3/orders"
    51  	FUTURES_INSTRUMENT_ORDER_LIST         = "/api/futures/v3/orders/{instrument_id}"
    52  	FUTURES_INSTRUMENT_ORDER_INFO         = "/api/futures/v3/orders/{instrument_id}/{order_id}"
    53  	FUTURES_INSTRUMENT_ORDER_CANCEL       = "/api/futures/v3/cancel_order/{instrument_id}/{order_id}"
    54  	FUTURES_INSTRUMENT_ORDER_BATCH_CANCEL = "/api/futures/v3/cancel_batch_orders/{instrument_id}"
    55  	FUTURES_FILLS                         = "/api/futures/v3/fills"
    56  
    57  	MARGIN_ACCOUNTS                         = "/api/margin/v3/accounts"
    58  	MARGIN_ACCOUNTS_INSTRUMENT              = "/api/margin/v3/accounts/{instrument_id}"
    59  	MARGIN_ACCOUNTS_INSTRUMENT_LEDGER       = "/api/margin/v3/accounts/{instrument_id}/ledger"
    60  	MARGIN_ACCOUNTS_AVAILABILITY            = "/api/margin/v3/accounts/availability"
    61  	MARGIN_ACCOUNTS_INSTRUMENT_AVAILABILITY = "/api/margin/v3/accounts/{instrument_id}/availability"
    62  	MARGIN_ACCOUNTS_BORROWED                = "/api/margin/v3/accounts/borrowed"
    63  	MARGIN_ACCOUNTS_INSTRUMENT_BORROWED     = "/api/margin/v3/accounts/{instrument_id}/borrowed"
    64  	MARGIN_ACCOUNTS_BORROW                  = "/api/margin/v3/accounts/borrow"
    65  	MARGIN_ACCOUNTS_REPAYMENT               = "/api/margin/v3/accounts/repayment"
    66  	MARGIN_ORDERS                           = "/api/margin/v3/orders"
    67  	MARGIN_BATCH_ORDERS                     = "/api/margin/v3/batch_orders"
    68  	MARGIN_CANCEL_ORDERS_BY_ID              = "/api/margin/v3/cancel_orders/{order_client_id}"
    69  	MARGIN_CANCEL_BATCH_ORDERS              = "/api/margin/v3/cancel_batch_orders"
    70  	MARGIN_ORDERS_BY_ID                     = "/api/margin/v3/orders/{order_client_id}"
    71  	MARGIN_ORDERS_PENDING                   = "/api/margin/v3/orders_pending"
    72  	MARGIN_FILLS                            = "/api/margin/v3/fills"
    73  
    74  	SPOT_ACCOUNTS                 = "/api/spot/v3/accounts"
    75  	SPOT_ACCOUNTS_CURRENCY        = "/api/spot/v3/accounts/{currency}"
    76  	SPOT_ACCOUNTS_CURRENCY_LEDGER = "/api/spot/v3/accounts/{currency}/ledger"
    77  	SPOT_ORDERS                   = "/api/spot/v3/orders"
    78  	SPOT_BATCH_ORDERS             = "/api/spot/v3/batch_orders"
    79  	SPOT_CANCEL_ORDERS_BY_ID      = "/api/spot/v3/cancel_orders/{order_client_id}"
    80  	SPOT_CANCEL_BATCH_ORDERS      = "/api/spot/v3/cancel_batch_orders"
    81  	SPOT_ORDERS_PENDING           = "/api/spot/v3/orders_pending"
    82  	SPOT_ORDERS_BY_ID             = "/api/spot/v3/orders/{order_client_id}"
    83  	SPOT_FILLS                    = "/api/spot/v3/fills"
    84  	SPOT_INSTRUMENTS              = "/api/spot/v3/instruments"
    85  	SPOT_INSTRUMENT_BOOK          = "/api/spot/v3/instruments/{instrument_id}/book"
    86  	SPOT_INSTRUMENTS_TICKER       = "/api/spot/v3/instruments/ticker"
    87  	SPOT_INSTRUMENT_TICKER        = "/api/spot/v3/instruments/{instrument_id}/ticker"
    88  	SPOT_INSTRUMENT_TRADES        = "/api/spot/v3/instruments/{instrument_id}/trades"
    89  	SPOT_INSTRUMENT_CANDLES       = "/api/spot/v3/instruments/{instrument_id}/candles"
    90  
    91  	SWAP_INSTRUMENT_ACCOUNT                 = "/api/swap/v3/{instrument_id}/accounts"
    92  	SWAP_INSTRUMENT_POSITION                = "/api/swap/v3/{instrument_id}/position"
    93  	SWAP_ACCOUNTS                           = "/api/swap/v3/accounts"
    94  	SWAP_ACCOUNTS_HOLDS                     = "/api/swap/v3/accounts/{instrument_id}/holds"
    95  	SWAP_ACCOUNTS_LEDGER                    = "/api/swap/v3/accounts/{instrument_id}/ledger"
    96  	SWAP_ACCOUNTS_LEVERAGE                  = "/api/swap/v3/accounts/{instrument_id}/leverage"
    97  	SWAP_ACCOUNTS_SETTINGS                  = "/api/swap/v3/accounts/{instrument_id}/settings"
    98  	SWAP_FILLS                              = "/api/swap/v3/fills"
    99  	SWAP_INSTRUMENTS                        = "/api/swap/v3/instruments"
   100  	SWAP_INSTRUMENTS_TICKER                 = "/api/swap/v3/instruments/ticker"
   101  	SWAP_INSTRUMENT_CANDLES                 = "/api/swap/v3/instruments/{instrument_id}/candles"
   102  	SWAP_INSTRUMENT_DEPTH                   = "/api/swap/v3/instruments/{instrument_id}/depth"
   103  	SWAP_INSTRUMENT_FUNDING_TIME            = "/api/swap/v3/instruments/{instrument_id}/funding_time"
   104  	SWAP_INSTRUMENT_HISTORICAL_FUNDING_RATE = "/api/swap/v3/instruments/{instrument_id}/historical_funding_rate"
   105  	SWAP_INSTRUMENT_INDEX                   = "/api/swap/v3/instruments/{instrument_id}/index"
   106  	SWAP_INSTRUMENT_LIQUIDATION             = "/api/swap/v3/instruments/{instrument_id}/liquidation"
   107  	SWAP_INSTRUMENT_MARK_PRICE              = "/api/swap/v3/instruments/{instrument_id}/mark_price"
   108  	SWAP_INSTRUMENT_OPEN_INTEREST           = "/api/swap/v3/instruments/{instrument_id}/open_interest"
   109  	SWAP_INSTRUMENT_PRICE_LIMIT             = "/api/swap/v3/instruments/{instrument_id}/price_limit"
   110  	SWAP_INSTRUMENT_TICKER                  = "/api/swap/v3/instruments/{instrument_id}/ticker"
   111  	SWAP_INSTRUMENT_TRADES                  = "/api/swap/v3/instruments/{instrument_id}/trades"
   112  	SWAP_INSTRUMENT_ORDER_LIST              = "/api/swap/v3/orders/{instrument_id}"
   113  	SWAP_INSTRUMENT_ORDER_BY_ID             = "/api/swap/v3/orders/{instrument_id}/{order_client_id}"
   114  	SWAP_RATE                               = "/api/swap/v3/rate"
   115  	SWAP_ORDER                              = "/api/swap/v3/order"
   116  	SWAP_ORDERS                             = "/api/swap/v3/orders"
   117  	SWAP_POSITION                           = "/api/swap/v3/position"
   118  
   119  	SWAP_CANCEL_BATCH_ORDERS = "/api/swap/v3/cancel_batch_orders/{instrument_id}"
   120  	SWAP_CANCEL_ORDER        = "/api/swap/v3/cancel_order/{instrument_id}/{order_id}"
   121  
   122  	INDEX_CONSTITUENTS = "/api/index/v3/{instrument_id}/constituents"
   123  )