汇率查询
汇率查询

汇率查询

接口类型:生活常用
接口状态:正常
描述:人民币、美元、欧元、英镑、日元、韩元等100多种货币的实时汇率查询,提供汇率转换、单个货币对应的热门货币汇率行情等API。
  • 货币兑换
  • 接口地址:http://open.liupai.net/exchange/convert

    支持格式:JSON,JSONP

    请求方式:GET POST

    请求示例:http://open.liupai.net/exchange/convert?appkey=yourappsecret

    请求参数:

    参数名称 类型 必填 说明
    from string 要换算的货币
    to string 换算后的货币
    amount int 数量

    返回参数:

    参数名称 类型 说明
    from string 要换算的货币
    to string 换算后的货币
    fromname string 要换算的货币名称
    toname string 换算后的货币名称
    updatetime string 更新时间
    rate string 汇率
    camount string 计算金额

    JSON返回实例:

  • 实时汇率
  • 接口地址:http://open.liupai.net/exchange/single

    支持格式:JSON,JSONP

    请求方式:GET POST

    请求示例:http://open.liupai.net/exchange/single?appkey=yourappsecret

    请求参数:

    参数名称 类型 必填 说明
    currency string 货币

    返回参数:

    参数名称 类型 说明
    currency string 货币
    name string 名称
    rate string 汇率
    updatetime string 更新时间

    JSON返回实例:

  • 所有货币
  • 接口地址:http://open.liupai.net/exchange/currency

    支持格式:JSON,JSONP

    请求方式:GET POST

    请求示例:http://open.liupai.net/exchange/currency?appkey=yourappsecret

    请求参数:

    参数名称 类型 必填 说明
    暂无参数

    返回参数:

    参数名称 类型 说明
    currency string 货币
    name string 名称

    JSON返回实例: