text: const axios = require('axios')
  class ApiBinance
  {
     
      constructor(){}
  
      async #publicCall(path,data, method = 'GET')
      {
          try {
              const queryString = data ? `?${JSON.stringify(data)}` : ''
              const result = await axios
              ({
                  method,
                  url: `${process.env.API_URL}${path}${queryString}`
              })
              return result.data
          } catch (error) {
              console.error(error)
          }
      }
  
      async time()
      {
          return this.#publicCall('/v3/time')
      }
  
      async depth(symbol = process.env.SYMBOL, limit = process.env.LIMIT)
      {
          return this.#publicCall(`/v3/depth?symbol=${symbol}&limit=${limit}`)
      }
  }
  
  module.exports = {ApiBinance}