量化交易

如果获取USDT和USD的实时汇率

原理

通过Http请求读取coinmarketcap上的实时USDT汇率,然后返回

出售年化70%Botvs策略源代码,点击查看

语言

JavaScript

适用平台

botvs,发明者量化

代码

//获得美元汇率
function getUSDTratio(){
var r = _C(HttpQuery,”https://api.coinmarketcap.com/v2/ticker/825/”);
var o = JSON.parse(r);
return o.data.quotes.USD.price;
}

出售年化70%Botvs策略源代码,点击查看

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.