获取汇率
java
import com.basicex.sdk.BasicExClient;
import com.basicex.sdk.exception.BasicexException;
import java.io.IOException;
import java.math.BigDecimal;
import java.security.cert.CertificateException;
public class BasicExTest{
private static String configPath = "~/4d1ebd88-8154-4ca1-b1c6-051b7d28c204/config.json";
public static void main(String[] args) throws CertificateException, IOException, BasicexException {
BasicExClient client = new BasicExClient(configPath);
Map<String, BigDecimal> rates = client.rates().getRates("USD");
}
}