XChange

程序名称:XChange

授权协议: MIT

操作系统: 跨平台

开发语言: Java

XChange 介绍

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());
  }
}

XChange 官网

https://github.com/timmolter/XChange

相关编程语言

DEFT(数字证据及取证工具箱)是一份定制的Xubuntu自...
DFF (Digital Forensics Framework) 是一个简单但强...
BackTrack是基于Ubuntu的自启动运行光盘,它包含了一...
计算机取证时需要为计算机生成一个位镜像拷贝 , 这需...
CAINE(计算机辅助调查环境)是基于Ubuntu的GNU/Lin...
HackShark Linux是一个基于KDE环境的轻量级的发行版...