title: Retrofit response returning null in Android Studio
body: <p>I want to fetch live data from coinbase api. I'm using Retrofit to make API call I got a null response when i tried returning displaying the data</p>
  
  <p>the json response from the api
  <strong>JSON</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>{"data":{"base":"BTC","currency":"USD","amount":"9510.915"}}</code></pre>
  </div>
  </div>
  </p>
  
  <p>The retrofit class for the returned data
  <strong>RETROFIT</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code> myC2C = RetrofitClient.getInstance("https://api.coinbase.com/v2/prices/").create(IMyC2C.class);
         
   Call&lt;DataList&gt; call = myC2C.getPrice("USD");
  
    call.enqueue(new Callback&lt;DataList&gt;() {
              @Override
     public void onResponse(Call&lt;DataList&gt; call, Response&lt;DataList&gt; response) {
  
                  if (!response.isSuccessful()){
                      usd_price.setText("Code: " + response.code());
                      return;
                  }
                  
                   Log.d("resedatasync", new Gson().toJson(response.body().getDatas()));
                  
              }
  
              @Override
              public void onFailure(Call&lt;DataList&gt; call, Throwable t) {
                  usd_price.setText(t.getMessage());
              }</code></pre>
  </div>
  </div>
  </p>
  
  <p>The endpoint that calls get methods and parse the type of currency
  <strong>ENDPOINT</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>@GET("spot")
      Call&lt;DataList&gt; getPrice(@Query("currency") String currency);</code></pre>
  </div>
  </div>
  </p>
  
  <p>the java model class here
  **JAVA CLASS</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>import java.util.List;
  
  public class DataList {
      private Datas Datas;
  
      public Datas getDatas() {
          return Datas;
      }
  
      public void setDatas(Datas datas) {
          this.Datas = datas;
      }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>package com.example.c2c.Model;
  
  public class Datas {
  
      private String base;
      private String currency;
      private float amount;
  
      public String getBase() {
          return base;
      }
  
      public void setBase(String base) {
          this.base = base;
      }
  
      public String getCurrency() {
          return currency;
      }
  
      public void setCurrency(String currency) {
          this.currency = currency;
      }
  
      public float getAmount() {
          return amount;
      }
  
      public void setAmount(float amount) {
          this.amount = amount;
      }
  
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>**</p>