You should test the Asset variable not calling the asset() method again in your trade() function:
Code:
if(Asset == "eur/jpy")
  printf("Buyeurjpy");
else if(Asset == "gbp/jpy")
  printf("Buygbpjpy");