Public API

Last revised: Oct 14th 22 2:34:24 pm

      • Public Api
         
        Get market price
      • https://admin.bitcorse.com/api/v1/markets/price/BTC_USDT
        • Request ParameterData TypeRequiredDescription
          symbolstringfalsecoin pair like BTC_USDT,LTC_USDT,ETH_USDT,USDT_BTC etc

        The response is a list of data values displayed in an array in the following order:
        if the URL is "https://admin.bitcorse.com/api/v1/markets/price/BTC_USDT"
        then the response =
        ['success' => true/false, 'message' => 'success or error message', 'data' => {}
        if the URL is "https://tradexpro-laravel.cdibrandstudio.com/api/v1/markets/price" then the response =
        ['success' => true/false, 'message' => 'success or error message', 'data' => [{},{},....]
        • Data FieldData TypeDescription
          symbolstringsymbol name
          trade_coinstringtrade coin full name
          base_coinstringbase coin full name
          pricestringcurrent price
          price_change_24hstringprice change in last 24 hour
          volume_24hstringlast 24 hour volume
          high_24hstringhighest price of last 24 hour
          low_24hstringlowest price of last 24 hour
        Get market order book data
      • https://admin.bitcorse.com/api/v1/markets/orderBook/BTC_USDT
        • Request ParameterData TypeRequiredDescription
          symbolstringtruecoin pair like BTC_USDT,LTC_USDT,ETH_USDT,USDT_BTC etc
          limitIntegerfalsemaximum number of records returned
          typestringfalseorder type buy, sell, buy_sell, default is buy_sell


        • The response is a list of data values displayed in an array in the following order:

          ['success' => true/false, 'message' => 'success or error message', 'data' => ['type' => buy_sell,'limit' => 10, 'buys' => [{},{}..],, 'sells' => [{},{}..]]

          Data FieldData TypeDescription
          amountstringquote units traded
          pricestringtrade price
          totalstringtotal trade coin (amount * price)
          exchangedstringalready exchanged amount
          date_timestringtime the record was pushed

        Get market trade data


        • The response is a list of data values displayed in an array in the following order:

          ['success' => true/false, 'message' => 'success or error message', 'data' => ['limit' => 10, 'trade' => [{},{}..]]

          Data FieldData TypeDescription
          amountstringquote units traded
          pricestringtrade price
          last_pricestringmarket last traded price
          price_order_typestringtaker's trade side (BUY, SELL)
          totalstringtotal trade coin
          timestringtime the record was pushed

        Get market chart data

        • https://admin.bitcorse.com/api/v1/markets/chart/BTC_USDT

          Request

          Request ParameterData TypeRequiredDescription
          symbolstringtruecoin pair like BTC_USDT,LTC_USDT,ETH_USDT,USDT_BTC etc
          start_timelongfalsefilters by time. The default value is 0.
          end_timelongfalsefilters by time. The default value is the current time
          intervalIntegerfalse5 = 5minData, 15= 15 min Data, 30 = 30 min Data, 120 = 2 hour Data, 240 = 4 hour data, 1440 = 1 day data

        • The response is a list of candles data values displayed in an array in the following order:

          ['success' => true/false, 'message' => 'success or error message', 'data' => [{},{},...]

          Data FieldData TypeDescription
          timelongtime the record was pushed
          lowstringthe lowest price over the interval
          highstringthe highest price over the interval
          openstringprice at the start time
          closestringprice at the end time
          volumestringbase units traded over the interval