MobSDK

货币汇率 永久免费 支持HTTPS

提供人民币汇率、外汇汇率查询。

数据仅供参考,交易时以银行柜台成交价为准。

API

  • 人民币汇率数据查询
  • 主要国家货币代码查询
  • 根据货币代码查询汇率
  • 分页查询实时汇率数据

错误码参照

  • 人民币汇率数据查询
  • 主要国家货币代码查询
  • 根据货币代码查询汇率
  • 分页查询实时汇率数据

价格套餐

  • 人民币汇率数据查询
  • 主要国家货币代码查询
  • 根据货币代码查询汇率
  • 分页查询实时汇率数据

人民币汇率数据查询

接口地址:http://apicloud.mob.com/exchange/rmbquot/query

支持格式:JSON

请求方式:GET

请求示例:http://apicloud.mob.com/exchange/rmbquot/query?key=appkey&bank=1

备注说明:人民币汇率数据查询

请求参数:

name type N D value
key string 用户申请的key
bank string 银行编号 1

返回字段:

name type N D value
retCode string 返回码
msg string 返回说明
result array 返回结果集
bankName string 银行名称
bank string 银行代码
currencyName string 币种名称
currencyCode string 币种代码
fBuyPri string 现汇买入价
mBuyPri string 现钞买入价
fSellPri string 现汇卖出价
mSellPri string 现钞卖出价
bankConversionPri string 银行折算价(中间价)
date string 发布日期
time string 发布时间

JSON返回示例:

                            {
    "msg": "success",
    "result": [
        {
            "bank": "cmbchina",
            "bankConversionPri": "649.4500",
            "bankName": "招商银行",
            "currencyCode": "USD",
            "currencyName": "美元",
            "date": "2016-03-22",
            "fBuyPri": "648.1500",
            "fSellPri": "650.7500",
            "mBuyPri": "642.9600",
            "mSellPri": "650.7500",
            "time": "11:20:03"
        },
        {
            "bank": "cmbchina",
            "bankConversionPri": "730.8900",
            "bankName": "招商银行",
            "currencyCode": "EUR",
            "currencyName": "欧元",
            "date": "2016-03-22",
            "fBuyPri": "727.9700",
            "fSellPri": "733.8100",
            "mBuyPri": "704.9400",
            "mSellPri": "733.8100",
            "time": "11:20:03"
        },
        {
            "bank": "cmbchina",
            "bankConversionPri": "83.7600",
            "bankName": "招商银行",
            "currencyCode": "HKD",
            "currencyName": "港币",
            "date": "2016-03-22",
            "fBuyPri": "83.5900",
            "fSellPri": "83.9300",
            "mBuyPri": "83.0100",
            "mSellPri": "83.9300",
            "time": "11:20:03"
        },
        {
            "bank": "cmbchina",
            "bankConversionPri": "5.8023",
            "bankName": "招商银行",
            "currencyCode": "JPY",
            "currencyName": "日元",
            "date": "2016-03-22",
            "fBuyPri": "5.7791",
            "fSellPri": "5.8255",
            "mBuyPri": "5.5963",
            "mSellPri": "5.8255",
            "time": "11:20:03"
        },
        {
            "bank": "cmbchina",
            "bankConversionPri": "934.0400",
            "bankName": "招商银行",
            "currencyCode": "GBP",
            "currencyName": "英镑",
            "date": "2016-03-22",
            "fBuyPri": "930.3000",
            "fSellPri": "937.7800",
            "mBuyPri": "900.8800",
            "mSellPri": "937.7800",
            "time": "11:20:03"
        },
        {
            "bank": "cmbchina",
            "bankConversionPri": "493.1300",
            "bankName": "招商银行",
            "currencyCode": "AUD",
            "currencyName": "澳大利亚元",
            "date": "2016-03-22",
            "fBuyPri": "491.1600",
            "fSellPri": "495.1000",
            "mBuyPri": "475.6200",
            "mSellPri": "495.1000",
            "time": "11:20:03"
        },
        {
            "bank": "cmbchina",
            "bankConversionPri": "496.9400",
            "bankName": "招商银行",
            "currencyCode": "CAD",
            "currencyName": "加拿大元",
            "date": "2016-03-22",
            "fBuyPri": "494.9500",
            "fSellPri": "498.9300",
            "mBuyPri": "479.3000",
            "mSellPri": "498.9300",
            "time": "11:20:03"
        },
        {
            "bank": "cmbchina",
            "bankConversionPri": "477.2900",
            "bankName": "招商银行",
            "currencyCode": "SGD",
            "currencyName": "新加坡元",
            "date": "2016-03-22",
            "fBuyPri": "475.3800",
            "fSellPri": "479.2000",
            "mBuyPri": "460.3500",
            "mSellPri": "479.2000",
            "time": "11:20:03"
        },
        {
            "bank": "cmbchina",
            "bankConversionPri": "669.9500",
            "bankName": "招商银行",
            "currencyCode": "CHF",
            "currencyName": "瑞士法郎",
            "date": "2016-03-22",
            "fBuyPri": "667.2700",
            "fSellPri": "672.6300",
            "mBuyPri": "646.1700",
            "mSellPri": "672.6300",
            "time": "11:20:03"
        },
        {
            "bank": "cmbchina",
            "bankName": "招商银行",
            "currencyCode": "",
            "currencyName": "",
            "date": "2015-01-13",
            "time": "12:05:02"
        },
        {
            "bank": "cmbchina",
            "bankConversionPri": "440.0000",
            "bankName": "招商银行",
            "currencyCode": "NZD",
            "currencyName": "新西兰元",
            "date": "2016-03-22",
            "fBuyPri": "438.2400",
            "fSellPri": "441.7600",
            "mBuyPri": "424.3800",
            "mSellPri": "441.7600",
            "time": "11:20:03"
        }
    ],
    "retCode": "200"
}
                        

错误代码:

name type N D value
22101 查询银行参数错误
22102 查询不到数据

价格套餐:

name type N D value
免费套餐 免费 无限次

主要国家货币代码查询

接口地址:http://apicloud.mob.com/exchange/currency/query

支持格式:JSON

请求方式:GET

请求示例:http://apicloud.mob.com/exchange/currency/query?key=appkey

备注说明:查询主要国家的货币代码和名称

请求参数:

name type N D value
key string 用户申请的key

返回字段:

name type N D value
retCode string 返回码
msg string 返回说明
result array 返回结果集
code string 货币代码
name string 货币名称

JSON返回示例:

                            {
    "msg": "success",
    "result": [
        {
            "code": "AED",
            "name": "阿联酋迪拉姆(UnitedArabEmiratesDirham)"
        },
        {
            "code": "ALL",
            "name": "阿尔巴尼列克(AlbaniaLek)"
        },
        {
            "code": "AFN",
            "name": "阿富汗尼(AfghanAfghani)"
        },
        {
            "code": "AMD",
            "name": "亚美尼亚德拉姆(ArmeniaDram)"
        },
        {
            "code": "ANG",
            "name": "荷兰盾(AntillesGuilder)"
        },
        {
            "code": "AOA",
            "name": "安哥拉宽扎(AngolaKwanza)"
        },
        {
            "code": "ARS",
            "name": "阿根廷比索(ArgentinaPeso)"
        },
        {
            "code": "AUD",
            "name": "澳元(AustraliaDollar)"
        },
        {
            "code": "AWG",
            "name": "阿鲁巴弗罗林(ArubaFlorin)"
        },
        {
            "code": "AZN",
            "name": "阿塞拜疆马纳特(AzerbaijanManat)"
        },
        {
            "code": "BAM",
            "name": "波黑可兑换马克(BosniaConvertibleMark)"
        },
        {
            "code": "BBD",
            "name": "巴巴多斯元(BarbadosDollar)"
        },
        {
            "code": "BDT",
            "name": "孟加拉国塔卡(BangladeshTaka)"
        },
        {
            "code": "BGN",
            "name": "保加利亚列弗(BulgariaLev)"
        },
        {
            "code": "BHD",
            "name": "巴林第纳尔(BahrainDinar)"
        },
        {
            "code": "BIF",
            "name": "布隆迪法郎(BurundiFranc)"
        },
        {
            "code": "CDF",
            "name": "刚果法郎(FrancCongolais)"
        },
        {
            "code": "CLF",
            "name": "智利比索(基金)(ChileanUnidaddeFomento)"
        },
        {
            "code": "CLP",
            "name": "智利比索(ChileanPeso)"
        },
        {
            "code": "CNH",
            "name": "中国离岸人民币(ChineseOffshoreRenminbi)"
        },
        {
            "code": "CNY",
            "name": "人民币(ChineseYuan)"
        },
        {
            "code": "COP",
            "name": "哥伦比亚比索(ColombiaPeso)"
        },
        {
            "code": "CRC",
            "name": "哥斯达黎加科朗(CostaRicaColon)"
        },
        {
            "code": "CUP",
            "name": "古巴比索(CubanPeso)"
        },
        {
            "code": "CVE",
            "name": "佛得角埃斯库多(CapeVerdeEscudo)"
        },
        {
            "code": "CYP",
            "name": "塞普路斯镑(CyprusPound)"
        },
        {
            "code": "CZK",
            "name": "捷克克朗(CzechRepublicKoruna)"
        },
        {
            "code": "DEM",
            "name": "德国马克(GermanMark)"
        },
        {
            "code": "DJF",
            "name": "吉布提法郎(DjiboutianFranc)"
        },
        {
            "code": "DKK",
            "name": "丹麦克郎(DanishKrone)"
        },
        {
            "code": "DOP",
            "name": "多米尼加比索(DominicanPeso)"
        },
        {
            "code": "DZD",
            "name": "阿尔及利亚第纳尔(AlgerianDinar)"
        },
        {
            "code": "ECS",
            "name": "厄瓜多尔苏克雷(EcuadorianSucre)"
        },
        {
            "code": "BND",
            "name": "文莱元(BruneiDollar)"
        },
        {
            "code": "EGP",
            "name": "埃及镑(EgyptianPound)"
        },
        {
            "code": "ERN",
            "name": "厄立特里亚纳克法(EritreanNakfa)"
        },
        {
            "code": "ETB",
            "name": "埃塞俄比亚比尔(EthiopianBirr)"
        },
        {
            "code": "EUR",
            "name": "欧元(Euro)"
        },
        {
            "code": "FJD",
            "name": "斐济元(FijiDollar)"
        },
        {
            "code": "FKP",
            "name": "福克兰群岛镑(FalklandIslandsPound)"
        },
        {
            "code": "BMD",
            "name": "百慕大元(BermudianDollar)"
        },
        {
            "code": "BRL",
            "name": "巴西雷亚尔(BrazilianReal)"
        },
        {
            "code": "BOB",
            "name": "玻利维亚诺(Boliviano)"
        },
        {
            "code": "BSD",
            "name": "巴哈马元(BahamianDollar)"
        },
        {
            "code": "FRF",
            "name": "法国法郎(FrenchFranc)"
        },
        {
            "code": "BTN",
            "name": "不丹努扎姆(BhutaneseNgultrum)"
        },
        {
            "code": "BWP",
            "name": "博茨瓦纳普拉(BotswanaPula)"
        },
        {
            "code": "BYR",
            "name": "白俄罗斯卢布(BelarusianRuble)"
        },
        {
            "code": "GBP",
            "name": "英镑(PoundSterling)"
        },
        {
            "code": "BZD",
            "name": "伯利兹元(BelizeDollar)"
        },
        {
            "code": "GIP",
            "name": "直布罗陀镑(GibraltarPound)"
        },
        {
            "code": "GEL",
            "name": "格鲁吉亚拉里(GeorgianLari)"
        },
        {
            "code": "GMD",
            "name": "冈比亚达拉西(GambianDalasi)"
        },
        {
            "code": "GTQ",
            "name": "危地马拉格查尔(GuatemalanQuetzal)"
        },
        {
            "code": "GYD",
            "name": "圭亚那元(GuyaneseDollar)"
        },
        {
            "code": "HKD",
            "name": "港币(HongKongDollar)"
        },
        {
            "code": "GHS",
            "name": "加纳塞地(GhanaianCedi)"
        },
        {
            "code": "HNL",
            "name": "洪都拉斯伦皮拉(HonduranLempira)"
        },
        {
            "code": "HRK",
            "name": "克罗地亚库纳(CroatianKuna)"
        },
        {
            "code": "HTG",
            "name": "海地古德(HaitianGourde)"
        },
        {
            "code": "HUF",
            "name": "匈牙利福林(HungarianForint)"
        },
        {
            "code": "IEP",
            "name": "爱尔兰镑(IrishPound)"
        },
        {
            "code": "ILS",
            "name": "以色列新谢克尔(IsraeliNewShekel)"
        },
        {
            "code": "IDR",
            "name": "印度尼西亚卢比(IndonesianRupiah)"
        },
        {
            "code": "IQD",
            "name": "伊拉克第纳尔(IraqiDinar)"
        },
        {
            "code": "GNF",
            "name": "几内亚法郎(GuineanFranc)"
        },
        {
            "code": "JPY",
            "name": "日元(JapaneseYen)"
        },
        {
            "code": "KHR",
            "name": "柬埔寨瑞尔(CambodianRiel)"
        },
        {
            "code": "KMF",
            "name": "科摩罗法郎(Comorianfranc)"
        },
        {
            "code": "KGS",
            "name": "吉尔吉斯斯坦索姆(KyrgyzstaniSom)"
        },
        {
            "code": "KPW",
            "name": "朝鲜元(NorthKoreanWon)"
        },
        {
            "code": "KRW",
            "name": "韩元(SouthKoreanWon)"
        },
        {
            "code": "KYD",
            "name": "开曼群岛元(CaymanIslandsDollar)"
        },
        {
            "code": "KWD",
            "name": "科威特第纳尔(KuwaitiDinar)"
        },
        {
            "code": "KZT",
            "name": "哈萨克斯坦腾格(KazakstaniTenge)"
        },
        {
            "code": "LBP",
            "name": "黎巴嫩镑(LebanesePound)"
        },
        {
            "code": "LAK",
            "name": "老挝基普(Laokip)"
        },
        {
            "code": "IRR",
            "name": "伊朗里亚尔(IranianRial)"
        },
        {
            "code": "LKR",
            "name": "斯里兰卡卢比(SriLankanRupee)"
        },
        {
            "code": "LRD",
            "name": "利比里亚元(Liberiandollar)"
        },
        {
            "code": "LTL",
            "name": "立陶宛立特(LithuanianLitas)"
        },
        {
            "code": "LSL",
            "name": "莱索托洛蒂(LesothoLoti)"
        },
        {
            "code": "LYD",
            "name": "利比亚第纳尔(LibyanDinar)"
        },
        {
            "code": "MAD",
            "name": "摩洛哥迪拉姆(MoroccanDirham)"
        },
        {
            "code": "LVL",
            "name": "拉脱维亚拉特(LatvianLats)"
        },
        {
            "code": "MDL",
            "name": "摩尔多瓦列伊(MoldovanLeu)"
        },
        {
            "code": "INR",
            "name": "印度卢比(IndianRupee)"
        },
        {
            "code": "MGA",
            "name": "马达加斯加阿里亚里(MalagasyAriary)"
        },
        {
            "code": "MKD",
            "name": "马其顿代纳尔(MacedonianDenar)"
        },
        {
            "code": "MMK",
            "name": "缅甸元(MyanmarKyat)"
        },
        {
            "code": "MNT",
            "name": "蒙古图格里克(MongolianTugrik)"
        },
        {
            "code": "MOP",
            "name": "澳门元(MacauPataca)"
        },
        {
            "code": "MRO",
            "name": "毛里塔尼亚乌吉亚(MauritaniaOuguiya)"
        },
        {
            "code": "MYR",
            "name": "马来西亚林吉特(MalaysianRinggit)"
        },
        {
            "code": "MZN",
            "name": "莫桑比克新梅蒂卡尔(NewMozambicanMetical)"
        },
        {
            "code": "NIO",
            "name": "尼加拉瓜新科多巴(NicaraguanCordobaOro)"
        },
        {
            "code": "NOK",
            "name": "挪威克朗(NorwegianKrone)"
        },
        {
            "code": "NPR",
            "name": "尼泊尔卢比(NepaleseRupee)"
        },
        {
            "code": "NZD",
            "name": "新西兰元(NewZealandDollar)"
        },
        {
            "code": "OMR",
            "name": "阿曼里亚尔(OmaniRial)"
        },
        {
            "code": "NAD",
            "name": "纳米比亚元(NamibianDollar)"
        },
        {
            "code": "NGN",
            "name": "尼日利亚奈拉(NigerianNaira)"
        },
        {
            "code": "PAB",
            "name": "巴拿马巴波亚(PanamanianBalboa)"
        },
        {
            "code": "PKR",
            "name": "巴基斯坦卢比(PakistanRupee)"
        },
        {
            "code": "PGK",
            "name": "巴布亚新几内亚基那(PapuaNewGuineaKina)"
        },
        {
            "code": "PHP",
            "name": "菲律宾比索(PhilippinePeso)"
        },
        {
            "code": "PYG",
            "name": "巴拉圭瓜拉尼(ParaguayanGuarani)"
        },
        {
            "code": "QAR",
            "name": "卡塔尔里亚尔(QatariRiyal)"
        },
        {
            "code": "RON",
            "name": "罗马尼亚列伊(RomanianLeu)"
        },
        {
            "code": "RSD",
            "name": "塞尔维亚第纳尔(SerbianDinar)"
        },
        {
            "code": "SAR",
            "name": "沙特里亚尔(SaudiArabianRiyal)"
        },
        {
            "code": "RUB",
            "name": "俄罗斯卢布(RussianRuble)"
        },
        {
            "code": "RWF",
            "name": "卢旺达法郎(RwandanFranc)"
        },
        {
            "code": "JOD",
            "name": "约旦第纳尔(JordanianDinar)"
        },
        {
            "code": "SBD",
            "name": "所罗门群岛元(SolomonIslandsDollar)"
        },
        {
            "code": "SCR",
            "name": "塞舌尔卢比(SeychellesRupee)"
        },
        {
            "code": "SDG",
            "name": "苏丹磅(SudanesePound)"
        },
        {
            "code": "SGD",
            "name": "新加坡元(SingaporeDollar)"
        },
        {
            "code": "SLL",
            "name": "塞拉利昂利昂(SierraLeoneanLeone)"
        },
        {
            "code": "SHP",
            "name": "圣赫勒拿镑(SaintHelenaPound)"
        },
        {
            "code": "SIT",
            "name": "斯洛文尼亚托拉尔(SlovenianTolar)"
        },
        {
            "code": "SRD",
            "name": "苏里南元(SurinameDollar)"
        },
        {
            "code": "SYP",
            "name": "叙利亚镑(SyrianPound)"
        },
        {
            "code": "STD",
            "name": "圣多美多布拉(SaoTomeDobra)"
        },
        {
            "code": "SOS",
            "name": "索马里先令(SomaliShilling)"
        },
        {
            "code": "MXN",
            "name": "墨西哥比索(MexicanPeso)"
        },
        {
            "code": "THB",
            "name": "泰铢(ThaiBaht)"
        },
        {
            "code": "PEN",
            "name": "秘鲁新索尔(PeruvianNuevoSol)"
        },
        {
            "code": "CAD",
            "name": "加元(CanadianDollar)"
        },
        {
            "code": "TMT",
            "name": "土库曼斯坦马纳特(TurkmenistanManat)"
        },
        {
            "code": "CHF",
            "name": "瑞士法郎(SwissFranc)"
        },
        {
            "code": "SVC",
            "name": "萨尔瓦多科朗(SalvadoranColon)"
        },
        {
            "code": "TTD",
            "name": "特立尼达多巴哥元(TrinidadandTobagoDollar)"
        },
        {
            "code": "TRY",
            "name": "土耳其里拉(TurkishLira)"
        },
        {
            "code": "MUR",
            "name": "毛里求斯卢比(MauritianRupee)"
        },
        {
            "code": "USD",
            "name": "美元(UnitedStatesDollar)"
        },
        {
            "code": "ITL",
            "name": "意大利里拉(ItalianLira)"
        },
        {
            "code": "VEF",
            "name": "委内瑞拉玻利瓦尔(VenezuelanBolivarFuerte)"
        },
        {
            "code": "VND",
            "name": "越南盾(VietNamDong)"
        },
        {
            "code": "ISK",
            "name": "冰岛克郎(IcelandicKrona)"
        },
        {
            "code": "XAF",
            "name": "中非法郎(CentralAfricanCFAFranc)"
        },
        {
            "code": "UGX",
            "name": "乌干达先令(UgandanShilling)"
        },
        {
            "code": "XDR",
            "name": "IMF特别提款权(IMFSpecialDrawingRights)"
        },
        {
            "code": "XOF",
            "name": "西非法郎(WestAfricanCFA)"
        },
        {
            "code": "XPD",
            "name": "钯价盎司(OuncesofPalladium)"
        },
        {
            "code": "XPF",
            "name": "太平洋法郎(FrenchPacificFranc)"
        },
        {
            "code": "XPT",
            "name": "珀价盎司(OuncesofPlatinum)"
        },
        {
            "code": "YER",
            "name": "也门里亚尔(YemeniRial)"
        },
        {
            "code": "ZAR",
            "name": "南非兰特(SouthAfricanRand)"
        },
        {
            "code": "ZMW",
            "name": "赞比亚克瓦查(ZambianKwacha)"
        },
        {
            "code": "ZWL",
            "name": "津巴布韦元(ZimbabweanDollar)"
        },
        {
            "code": "SZL",
            "name": "斯威士兰里兰吉尼(SwaziLilangeni)"
        },
        {
            "code": "TZS",
            "name": "坦桑尼亚先令(TanzanianShilling)"
        },
        {
            "code": "UZS",
            "name": "乌兹别克斯坦苏姆(UzbekistaniSom)"
        },
        {
            "code": "VUV",
            "name": "瓦努阿图瓦图(VanuatuVatu)"
        },
        {
            "code": "UYU",
            "name": "乌拉圭比索(UruguayanPeso)"
        },
        {
            "code": "WST",
            "name": "萨摩亚塔拉(SamoaTala)"
        },
        {
            "code": "KES",
            "name": "肯尼亚先令(KenyanShilling)"
        },
        {
            "code": "MWK",
            "name": "马拉维克瓦查(MalawianKwacha)"
        },
        {
            "code": "XAG",
            "name": "银价盎司(OuncesofSilver)"
        },
        {
            "code": "TOP",
            "name": "汤加潘加(TonganPa'Anga)"
        },
        {
            "code": "TJS",
            "name": "塔吉克斯坦索莫尼(TajikistanSomoni)"
        },
        {
            "code": "MVR",
            "name": "马尔代夫拉菲亚(MaldivesRufiyaa)"
        },
        {
            "code": "UAH",
            "name": "乌克兰格里夫纳(UkrainianHryvnia)"
        },
        {
            "code": "MXV",
            "name": "墨西哥MXV(MexicanUnidadDeInversion)"
        },
        {
            "code": "SEK",
            "name": "瑞典克朗(SwedishKrona)"
        },
        {
            "code": "TWD",
            "name": "新台币(NewTaiwanDollar)"
        },
        {
            "code": "PLN",
            "name": "波兰兹罗提(PolishZloty)"
        },
        {
            "code": "TND",
            "name": "突尼斯第纳尔(TunisianDinar)"
        },
        {
            "code": "JMD",
            "name": "牙买加元(JamaicanDollar)"
        },
        {
            "code": "XCP",
            "name": "铜价盎司(OuncesofCopper)"
        },
        {
            "code": "XAU",
            "name": "金价盎司(OuncesofGold)"
        },
        {
            "code": "XCD",
            "name": "东加勒比元(EastCaribbeanDollar)"
        }
    ],
    "retCode": "200"
}
                        

错误代码:

name type N D value

价格套餐:

name type N D value
免费套餐 免费 无限次

根据货币代码查询汇率

接口地址:http://apicloud.mob.com/exchange/code/query

支持格式:JSON

请求方式:GET

请求示例:http://apicloud.mob.com/exchange/code/query?key=appkey&code=CNYHKD

备注说明:根据货币代码(两个国家汇率代码)查询汇率数据

请求参数:

name type N D value
key string 用户申请的key
code string 两个国家货币代码 (比如CNYHKD) CNYHKD

返回字段:

name type N D value
retCode string 返回码
msg string 返回说明
result string 返回结果集
buyPic string 买入价
closePri string 最新价
code string 货币代码
currency string 兑换汇率名称
date string 日期
diffAmo string 涨跌额
diffPer string 涨跌幅
highPic string 最高价
lowPic string 最低价
openPri string 开盘价
range string 振幅
sellPic string 卖出价
yesDayPic string 昨收价

JSON返回示例:

                            {
    "msg": "success",
    "result": {
        "buyPic": "1.1934",
        "closePri": "1.1934",
        "code": "CNYHKD",
        "currency": "人民币兑港元即期汇率",
        "date": "2016-03-22",
        "diffAmo": "-0.0022",
        "diffPer": "-0.1840%",
        "highPic": "1.1959",
        "lowPic": "1.193",
        "openPri": "1.1956",
        "range": "29",
        "sellPic": "1.1944",
        "yesDayPic": "1.1956"
    },
    "retCode": "200"
}
                        

错误代码:

name type N D value
22103 汇率代码不能为空
22104 汇率代码查询不到数据

价格套餐:

name type N D value
免费套餐 免费 无限次

分页查询实时汇率数据

接口地址:http://apicloud.mob.com/exchange/query

支持格式:JSON

请求方式:GET

请求示例:http://apicloud.mob.com/exchange/query?key=appkey&page=1&size=20

备注说明:分页查询实时汇率数据

请求参数:

name type N D value
key string 用户申请的key
page int 分页参数,当前页数(默认是1) 1
size int 每页多少条记录,默认50 50

返回字段:

name type N D value
retCode string 返回码
msg string 返回说明
result array 返回结果集
page int 当前页数
size int 每页记录数
totalPage int 总页数
buyPic string 买入价
closePri string 最新价
code string 货币汇率代码
currency string 汇率名字
date string 日期
diffAmo string 涨跌额
diffPer string 涨跌幅
highPic string 最高价
lowPic string 最低价
openPri string 开盘价
range string 振幅
sellPic string 卖出价
yesDayPic string 昨收价

JSON返回示例:

                            {
    "msg": "success",
    "result": {
        "currentPage": 1,
        "pageSize": 5,
        "resultList": [
            {
                "buyPic": "0.00031",
                "closePri": "0.00031",
                "code": "MGAUSD",
                "currency": "马尔加什阿里亚兑美元即期汇率",
                "date": "2016-03-01",
                "diffAmo": "0.0000",
                "diffPer": "0.0000%",
                "highPic": "0.00031",
                "lowPic": "0.00031",
                "openPri": "0.00031",
                "range": "0",
                "sellPic": "0.00032",
                "yesDayPic": "0.00031"
            },
            {
                "buyPic": "0.012673",
                "closePri": "0.012673",
                "code": "MKDGBP",
                "currency": "马其顿第纳尔兑英镑即期汇率",
                "date": "2016-03-01",
                "diffAmo": "0.0000",
                "diffPer": "0.0000%",
                "highPic": "0.012686",
                "lowPic": "0.012672",
                "openPri": "0.012684",
                "range": "0.14",
                "sellPic": "0.012773",
                "yesDayPic": "0.012683"
            },
            {
                "buyPic": "0.00059",
                "closePri": "0.00059",
                "code": "MMKCAD",
                "currency": "缅甸元兑加拿大元即期汇率",
                "date": "2016-03-01",
                "diffAmo": "0.0000",
                "diffPer": "0.0000%",
                "highPic": "0.00059",
                "lowPic": "0.00059",
                "openPri": "0.00059",
                "range": "0",
                "sellPic": "0.00159",
                "yesDayPic": "0.00059"
            },
            {
                "buyPic": "0.00109",
                "closePri": "0.00109",
                "code": "MMKCAX",
                "currency": "缅甸元兑加拿大元参考利率即期汇率",
                "date": "2016-03-01",
                "diffAmo": "0.0000",
                "diffPer": "0.0000%",
                "highPic": "0.00109",
                "lowPic": "0.00109",
                "openPri": "0.00109",
                "range": "0",
                "sellPic": "0.0",
                "yesDayPic": "0.00109"
            },
            {
                "buyPic": "0.0034",
                "closePri": "0.0034",
                "code": "MMKMYX",
                "currency": "缅甸元兑马来西亚元参考汇率即期汇率",
                "date": "2016-03-01",
                "diffAmo": "0.0000",
                "diffPer": "0.0000%",
                "highPic": "0.0034",
                "lowPic": "0.0034",
                "openPri": "0.0034",
                "range": "0",
                "sellPic": "0.003405",
                "yesDayPic": "0.003414"
            }
        ],
        "totalPage": 464
    },
    "retCode": "200"
}
                        

错误代码:

name type N D value
22105 分页参数错误

价格套餐:

name type N D value
免费套餐 免费 无限次
MobSDK后台打包中:
查看
MobSDK打包中
正在根据你选择的SDK打包中:
取消下载
免费咨询
扫一扫添加公众号
24小时在线免费咨询