XChange

授权协议 MIT
开发语言 Java
所属分类 企业应用、 金融/财务/证券系统
软件类型 开源软件
地区 不详
投 递 者 斜俊
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

XChange 是一个提供简单和一致的 API 用于和多样化的金融安全交换数据,包括对 Bitcoin 的支持。

示例代码:

package com.xeiam.xchange.examples.mtgox.v1.polling;
 
import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.ExchangeFactory;
import com.xeiam.xchange.ExchangeSpecification;
import com.xeiam.xchange.dto.trade.AccountInfo;
import com.xeiam.xchange.service.trade.polling.PollingTradeService;
 
/**
 * Demo requesting account info at MtGox
 */
public class AccountInfoDemo {
 
  private static PollingTradeService tradeService;
 
  public static void main(String[] args) {
 
    // Use the factory to get the version 1 MtGox exchange API using default settings
    ExchangeSpecification exchangeSpecification = new ExchangeSpecification("com.xeiam.xchange.mtgox.v1.MtGoxExchange");
    exchangeSpecification.setApiKey("150c6db9-e5ab-47ac-83d6-4440d1b9ce49");
    exchangeSpecification.setSecretKey("olHM/yl3CAuKMXFS2+xlP/MC0Hs1M9snHpaHwg0UZW52Ni0Tf4FhGFELO9cHcDNGKvFrj8CgyQUA4VsMTZ6dXg==");
    exchangeSpecification.setUri("https://mtgox.com");
    exchangeSpecification.setVersion("1");
    Exchange mtgox = ExchangeFactory.INSTANCE.createExchange(exchangeSpecification);
 
    // Interested in the private trading functionality (authentication)
    tradeService = mtgox.getPollingTradeService();
 
    // Get the account information
    AccountInfo accountInfo = tradeService.getAccountInfo();
    System.out.println("AccountInfo as String: " + accountInfo.toString());
  }
}

 相关资料
  • ARCHIVED This project has now been merged into the XChange library. There will be no further releases and pull requests will not be accepted. Please use XChange from 5.0.0-SNAPSHOT onwards, which is,

  • Open-Xchange提供大部分的群件功能,包括行事历、联络人、待办事项、分享项目与文件、分享知识、讨论区、书签和电子邮件。并且提供WebDAV/XML 接口可以让其它软件与Open-Xchange 的联络人管理、行事历、待办事项与文件等功能相结合。

相关阅读

相关文章

相关问答

相关文档