V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
goodspb
V2EX  ›  程序员

请问各位 V 友,还有免费的汇率 api 接口可用么?雅虎汇率接口貌似停用了。

  •  
  •   goodspb · 2017-08-29 11:32:12 +08:00 · 6420 次点击
    这是一个创建于 2669 天前的主题,其中的信息可能已经有所发展或是发生改变。

    原来使用雅虎的 YQL:可以通过以下接口获取数据 https://query.yahooapis.com/v1/public/yql?q=SELECT%20*%20FROM%20yahoo.finance.xchange%20WHERE%20pair%20IN%20(%22AEDCNY%22%2C%22AMDCNY%22%2C%22ANGCNY%22%2C%22ARSCNY%22%2C%22AUDCNY%22%2C%22AWGCNY%22%2C%22AZNCNY%22%2C%22BAMCNY%22%2C%22BBDCNY%22%2C%22BDTCNY%22%2C%22BGNCNY%22%2C%22BHDCNY%22%2C%22BIFCNY%22%2C%22BMDCNY%22%2C%22BNDCNY%22%2C%22BOBCNY%22%2C%22BRLCNY%22%2C%22BSDCNY%22%2C%22BTNCNY%22%2C%22BWPCNY%22%2C%22BYNCNY%22%2C%22BYRCNY%22%2C%22BZDCNY%22%2C%22CADCNY%22%2C%22CDFCNY%22%2C%22CHFCNY%22%2C%22CLFCNY%22%2C%22CLPCNY%22%2C%22CNYCNY%22%2C%22COPCNY%22%2C%22CRCCNY%22%2C%22CUCCNY%22%2C%22CUPCNY%22%2C%22CVECNY%22%2C%22CZKCNY%22%2C%22DJFCNY%22%2C%22DKKCNY%22%2C%22DOPCNY%22%2C%22EGPCNY%22%2C%22ERNCNY%22%2C%22ETBCNY%22%2C%22EURCNY%22%2C%22FJDCNY%22%2C%22FKPCNY%22%2C%22GBPCNY%22%2C%22GELCNY%22%2C%22GHSCNY%22%2C%22GIPCNY%22%2C%22GMDCNY%22%2C%22GNFCNY%22%2C%22GTQCNY%22%2C%22GYDCNY%22%2C%22HKDCNY%22%2C%22HNLCNY%22%2C%22HRKCNY%22%2C%22HTGCNY%22%2C%22HUFCNY%22%2C%22IDRCNY%22%2C%22ILSCNY%22%2C%22INRCNY%22%2C%22IQDCNY%22%2C%22IRRCNY%22%2C%22ISKCNY%22%2C%22JMDCNY%22%2C%22JODCNY%22%2C%22JPYCNY%22%2C%22KESCNY%22%2C%22KGSCNY%22%2C%22KHRCNY%22%2C%22KMFCNY%22%2C%22KPWCNY%22%2C%22KRWCNY%22%2C%22KWDCNY%22%2C%22KYDCNY%22%2C%22KZTCNY%22%2C%22LAKCNY%22%2C%22LBPCNY%22%2C%22LKRCNY%22%2C%22LRDCNY%22%2C%22LSLCNY%22%2C%22LYDCNY%22%2C%22MADCNY%22%2C%22MDLCNY%22%2C%22MGACNY%22%2C%22MKDCNY%22%2C%22MMKCNY%22%2C%22MNTCNY%22%2C%22MOPCNY%22%2C%22MROCNY%22%2C%22MURCNY%22%2C%22MVRCNY%22%2C%22MWKCNY%22%2C%22MXNCNY%22%2C%22MXVCNY%22%2C%22MYRCNY%22%2C%22MZNCNY%22%2C%22NADCNY%22%2C%22NGNCNY%22%2C%22NIOCNY%22%2C%22NOKCNY%22%2C%22NPRCNY%22%2C%22NZDCNY%22%2C%22OMRCNY%22%2C%22PABCNY%22%2C%22PENCNY%22%2C%22PGKCNY%22%2C%22PHPCNY%22%2C%22PKRCNY%22%2C%22PLNCNY%22%2C%22PYGCNY%22%2C%22QARCNY%22%2C%22RONCNY%22%2C%22RSDCNY%22%2C%22RUBCNY%22%2C%22RWFCNY%22%2C%22SARCNY%22%2C%22SBDCNY%22%2C%22SCRCNY%22%2C%22SDGCNY%22%2C%22SEKCNY%22%2C%22SGDCNY%22%2C%22SHPCNY%22%2C%22SLLCNY%22%2C%22SOSCNY%22%2C%22SRDCNY%22%2C%22STDCNY%22%2C%22SVCCNY%22%2C%22SYPCNY%22%2C%22SZLCNY%22%2C%22THBCNY%22%2C%22TJSCNY%22%2C%22TMTCNY%22%2C%22TNDCNY%22%2C%22TOPCNY%22%2C%22TRYCNY%22%2C%22TTDCNY%22%2C%22TWDCNY%22%2C%22TZSCNY%22%2C%22UAHCNY%22%2C%22UGXCNY%22%2C%22USDCNY%22%2C%22UYUCNY%22%2C%22UZSCNY%22%2C%22VEFCNY%22%2C%22VNDCNY%22%2C%22VUVCNY%22%2C%22WSTCNY%22%2C%22YERCNY%22%2C%22ZARCNY%22%2C%22ZMWCNY%22%2C%22ZWLCNY%22)&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys

    但是现在貌似崩了,请问还有谁知道有免费的接口么?或者有收费的但是靠谱?

    对实时性要求不高,准确性其实也不太高。只是做做数据展示。

    6 条回复    2017-08-30 10:48:06 +08:00
    nyaruko
        1
    nyaruko  
       2017-08-29 16:00:28 +08:00
    刚刚试了下。yql 是可以用的呀。
    goodspb
        2
    goodspb  
    OP
       2017-08-29 18:07:29 +08:00
    @nyaruko 只能说,间歇性失常,你不要用他提供的那个测试页面,那个页面多数成功。直接用链接,绝大多数几率失败。
    xingo
        3
    xingo  
       2017-08-29 21:04:28 +08:00
    1234567a
        4
    1234567a  
       2017-08-29 23:41:18 +08:00
    汇率 api,好像阿里云有收费的吧
    goodspb
        6
    goodspb  
    OP
       2017-08-30 10:48:06 +08:00
    我现在用这个了: http://api.fixer.io/latest?base=CNY
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3046 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 13:57 · PVG 21:57 · LAX 05:57 · JFK 08:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.