無料で使えるシステムトレードフレームワーク「Jiji」 をリリースしました!

・OANDA Trade APIを利用した、オープンソースのシステムトレードフレームワークです。
・自分だけの取引アルゴリズムで、誰でも、いますぐ、かんたんに、自動取引を開始できます。

OCO,IFD,IFD-OCO取引に対応。

FX取引のOCO,IFD,IFD-OCO取引に対応。それぞれ注文、注文変更、決済の一式を実装し、これでFX取引APIは一通り実装完了!テストしてないけど!

ダウンロード

例によって一応公開。こちらからどうぞ。今回からZipアーカイブにしました。
実際のWebサービスでの動作は未検証です。ローカルサーバーでの動作のみ確認しています。

使い方

株式取引機能を考慮して構成を変更。定数が「GMO」から「GMO::FX」以下に移動しています。

require 'gmoclient'

c = GMO::Client.new
c.fx_session( <ユーザーID>, <パスワード> ) { | fx_session | 
  
  # 通貨ペア一覧取得
  # 引数で取得する通貨ペアコードを配列で指定
  # 指定しない場合すべての通貨ペアの情報を取得。
  puts "\n--- list_currency_pairs"
  list = fx_session.list_currency_pairs [GMO::FX::USDJPY, GMO::FX::EURJPY]
  list.each{ |currency_pair_code, value|  puts value }
  
  # レート一覧取得 
  puts "\n--- list_rates"
  list = fx_session.list_rates
  list.each{ |currency_pair_code, value|  puts value }
  
  # 成り行き注文
  puts "\n--- order - buy"
  puts fx_session.order( GMO::FX::USDJPY, GMO::FX::BUY, 2  )
  puts "\n--- order - sell"
  result = fx_session.order( GMO::FX::USDJPY, GMO::FX::SELL, 1, {
    :slippage=>99,
    :slippage_base_rate=>list[GMO::FX::USDJPY].bid_rate
  })
  puts result
  
  # 成り行き決済注文
  puts "\n--- settle"
  puts fx_session.settle( result.order_no, 1 )
  puts fx_session.settle( result.order_no, 2, {
    :slippage=>99,
    :slippage_base_rate=>list[GMO::FX::USDJPY].bid_rate
  })
  
  # 通常注文
  puts "\n--- order - basic sell"
  result = fx_session.order( GMO::FX::USDJPY, GMO::FX::SELL, 1, {
    :rate=>145.19,
    :execution_expression=>GMO::FX::EXECUTION_EXPRESSION_LIMIT_ORDER,
    :expiration_type=>GMO::FX::EXPIRATION_TYPE_SPECIFIED,
    :expiration_date=>DateTime.new( 2007, 11, 5, 0 )
  })
  puts result

  # 注文変更
  puts "\n--- edit_order"
  fx_session.edit_order( result.order_no, {
    :rate=>145.19,
    :expiration_type=>GMO::FX::EXPIRATION_TYPE_TODAY
  })
  
  # 注文取消し
  puts "\n--- cancel_order"
  fx_session.cancel_order( result.order_no )
  
  # 通常決済注文
  puts "\n--- settle - basic"
  result = fx_session.order( GMO::FX::USDJPY, GMO::FX::SELL, 2, {
    :rate=>145.19,
    :execution_expression=>GMO::FX::EXECUTION_EXPRESSION_LIMIT_ORDER,
    :expiration_type=>GMO::FX::EXPIRATION_TYPE_TODAY
  })
  puts fx_session.settle( result.order_no, 2, {
    :rate=>146.20,
    :execution_expression=>GMO::FX::EXECUTION_EXPRESSION_LIMIT_ORDER,
    :expiration_type=>GMO::FX::EXPIRATION_TYPE_SPECIFIED,
    :expiration_date=>DateTime.new( 2007, 11, 5, 0 )
  })
  
  # OCO注文
  puts "\n--- order - oco"
  result = fx_session.order( GMO::FX::USDJPY, GMO::FX::SELL, 1, {
    :rate=>145.19,
    :stop_order_rate=>144.19,
    :expiration_type=>GMO::FX::EXPIRATION_TYPE_SPECIFIED,
    :expiration_date=>DateTime.new( 2007, 11, 5, 0 )
  })
  puts result
  
  # OCO注文変更
  puts "\n--- edit - oco"
  fx_session.edit_order( result.limit_order_no, {
    :stop_order_no=>result.stop_order_no,
    :rate=>145.29,
    :stop_order_rate=>144.29,
    :expiration_type=>GMO::FX::EXPIRATION_TYPE_SPECIFIED,
    :expiration_date=>DateTime.new( 2007, 11, 6, 0 )
  }) 
  
  # OCO決済注文
  puts "\n--- settle - oco"
  puts fx_session.settle( result.limit_order_no, 2, {
    :rate=>146.20,
    :stop_order_rate=>144.19,
    :execution_expression=>GMO::FX::EXECUTION_EXPRESSION_LIMIT_ORDER,
    :expiration_type=>GMO::FX::EXPIRATION_TYPE_SPECIFIED,
    :expiration_date=>DateTime.new( 2007, 11, 5, 0 )
  })    
  
  # IFD取引
  puts "\n--- order - ifd"
  result = fx_session.order( GMO::FX::USDJPY, GMO::FX::SELL, 1, {
    :rate=>145.19,
    :execution_expression=>GMO::FX::EXECUTION_EXPRESSION_LIMIT_ORDER,
    :expiration_type=>GMO::FX::EXPIRATION_TYPE_SPECIFIED,
    :expiration_date=>DateTime.new( 2007, 11, 5, 0 ),
    :settle=>{
      :unit=>1,
      :sell_or_buy=>GMO::FX::BUY,
      :rate=>145.91,
      :execution_expression=>GMO::FX::EXECUTION_EXPRESSION_LIMIT_ORDER,
      :expiration_type=>GMO::FX::EXPIRATION_TYPE_SPECIFIED,
      :expiration_date=>DateTime.new( 2007, 11, 5, 0 ),
    }
  })
  puts result   
  
  # IFD注文変更
  puts "\n--- edit - ifd"
  fx_session.edit_order( result.order_no, {
    :rate=>145.29,
    :expiration_type=>GMO::FX::EXPIRATION_TYPE_TODAY,
    :settle=>{
      :order_no=>result.settlement_order_no,
      :rate=>145.91,
      :expiration_type=>GMO::FX::EXPIRATION_TYPE_SPECIFIED,
      :expiration_date=>DateTime.new( 2007, 11, 6, 0 ),
    }
  })   
  
  # IFD-OCO取引
  puts "\n--- order - ifd-oco"
  result = fx_session.order( GMO::FX::USDJPY, GMO::FX::SELL, 1, {
    :rate=>145.19,
    :execution_expression=>GMO::FX::EXECUTION_EXPRESSION_LIMIT_ORDER,
    :expiration_type=>GMO::FX::EXPIRATION_TYPE_TODAY,
    :settle=>{
      :unit=>1,
      :sell_or_buy=>GMO::FX::BUY,
      :rate=>145.91,
      :stop_order_rate=>144.15,
      :execution_expression=>GMO::FX::EXECUTION_EXPRESSION_LIMIT_ORDER,
      :expiration_type=>GMO::FX::EXPIRATION_TYPE_SPECIFIED,
      :expiration_date=>DateTime.new( 2007, 11, 5, 0 ),
    }
  })
  puts result  
  
  # IFD-OCO注文変更
  puts "\n--- edit - ifd-oco"
  fx_session.edit_order( result.order_no, {
    :rate=>145.29,
    :expiration_type=>GMO::FX::EXPIRATION_TYPE_SPECIFIED,
    :expiration_date=>DateTime.new( 2007, 11, 6, 0 ),
    :settle=>{
      :order_no=>result.kessaiSashineChumonBango,
      :stop_order_no=>result.kessaiGyakusashiChumonBango,
      :rate=>145.21,
      :stop_order_rate=>144.15,
      :expiration_type=>GMO::FX::EXPIRATION_TYPE_SPECIFIED,
      :expiration_date=>DateTime.new( 2007, 11, 6, 0 ),
    }
  })     
  
  # 注文一覧取得
  # 引数で、注文状態コード(必須)、通貨ペアコード、注文日期間開始日、注文日期間終了日を指定可能。
  puts "\n--- list_orders"
  list = fx_session.list_orders GMO::FX::ORDER_CONDITION_ALL, GMO::FX::EURJPY, Date.new( 2007, 10, 1 ), Date.new( 2007, 11, 1 )
  list.each{ |item|  puts item }  
  
  # 建玉一覧取得
  # 引数で、通貨ペアコードを指定可能。(省略可)
  puts "\n--- list_open_interests"
  list = fx_session.list_open_interests( GMO::FX::EURJPY )
  list.each{ |item|  puts item }
  
  # 約定一覧取得
  # 引数で、取得期間(開始日,終了日)(必須)、通貨ペアコード、取引タイプ(新規Or決済)を指定可能。
  puts "\n--- list_execution_results"
  list = fx_session.list_execution_results( Date.new( 2007, 10, 1 ), Date.new( 2007, 11, 1 ) )
  list.each{ |item|  puts item }   
  list = fx_session.list_execution_results( Date.new( 2007, 10, 1 ), Date.new( 2007, 11, 1 ), GMO::FX::TRADE_TYPE_NEW, GMO::FX::EURJPY )
  list.each{ |item|  puts item }
  
  # 余力情報の取得
  puts "\n--- get_margin"
  puts fx_session.get_margin
  
  # お知らせ一覧取得
  puts "\n--- list_messages"
  list = fx_session.list_messages
  list.each{ |item|  puts item.to_s.tosjis }  
}

実行結果です

--- list_currency_pairs
@min_trade_quantity=10000, @name=USDJPY, @maxTorihikiSuryo=3000000, @max_trade_quantity=3000000, @tsukaPairCode=1, @torihikiTani=10000, @currency_pair_code=1, @tsukaPairName=USDJPY, @trade_unit=10000, @minTorihikiSuryo=10000

--- list_rates
@sell_swap=-178, @hasseibi=2007-06-12T00:00:00+00:00, @day_before_to=6.0, @bidHigh=88.47, @tsukaPair=, @buy_swap=175, @kaiSwap=175, @ask_rate=88.45, @zenjitsuhi=6, @bid_low=88.22, @currency_pair_code=5, @uriSwap=-178, @bid_rate=88.38, @ask=88.45, @days_of_grant=1, @fuyoNissu=1, @date=2007-06-12T00:00:00+00:00, @bid_high=88.47, @bidLow=88.22, @bid=88.38
@sell_swap=-23, @hasseibi=2007-06-12T00:00:00+00:00, @day_before_to=2.0, @bidHigh=0.8196, @tsukaPair=, @buy_swap=20, @kaiSwap=20, @ask_rate=0.8198, @zenjitsuhi=2, @bid_low=0.8175, @currency_pair_code=11, @uriSwap=-23, @bid_rate=0.8179, @ask=0.8198, @days_of_grant=1, @fuyoNissu=1, @date=2007-06-12T00:00:00+00:00, @bid_high=0.8196, @bidLow=0.8175, @bid=0.8179
@sell_swap=-111, @hasseibi=2007-06-12T00:00:00+00:00, @day_before_to=7.0, @bidHigh=112.0, @tsukaPair=, @buy_swap=108, @kaiSwap=108, @ask_rate=111.98, @zenjitsuhi=7, @bid_low=111.68, @currency_pair_code=6, @uriSwap=-111, @bid_rate=111.92, @ask=111.98, @days_of_grant=1, @fuyoNissu=1, @date=2007-06-12T00:00:00+00:00, @bid_high=112.0, @bidLow=111.68, @bid=111.92
@sell_swap=-74, @hasseibi=2007-06-12T00:00:00+00:00, @day_before_to=4.0, @bidHigh=1.6546, @tsukaPair=, @buy_swap=71, @kaiSwap=71, @ask_rate=1.6544, @zenjitsuhi=4, @bid_low=1.6526, @currency_pair_code=12, @uriSwap=-74, @bid_rate=1.6538, @ask=1.6544, @days_of_grant=1, @fuyoNissu=1, @date=2007-06-12T00:00:00+00:00, @bid_high=1.6546, @bidLow=1.6526, @bid=1.6538
@sell_swap=-161, @hasseibi=2007-06-12T00:00:00+00:00, @day_before_to=18.0, @bidHigh=121.66, @tsukaPair=, @buy_swap=159, @kaiSwap=159, @ask_rate=121.79, @zenjitsuhi=18, @bid_low=121.4, @currency_pair_code=1, @uriSwap=-161, @bid_rate=121.64, @ask=121.79, @days_of_grant=1, @fuyoNissu=1, @date=2007-06-12T00:00:00+00:00, @bid_high=121.66, @bidLow=121.4, @bid=121.64
@sell_swap=-46, @hasseibi=2007-06-12T00:00:00+00:00, @day_before_to=18.0, @bidHigh=99.02, @tsukaPair=, @buy_swap=42, @kaiSwap=42, @ask_rate=99.04, @zenjitsuhi=18, @bid_low=98.63, @currency_pair_code=7, @uriSwap=-46, @bid_rate=98.99, @ask=99.04, @days_of_grant=1, @fuyoNissu=1, @date=2007-06-12T00:00:00+00:00, @bid_high=99.02, @bidLow=98.63, @bid=98.99
@sell_swap=-205, @hasseibi=2007-06-12T00:00:00+00:00, @day_before_to=-11.0, @bidHigh=2.4298, @tsukaPair=, @buy_swap=200, @kaiSwap=200, @ask_rate=2.4275, @zenjitsuhi=-11, @bid_low=2.4256, @currency_pair_code=13, @uriSwap=-205, @bid_rate=2.4267, @ask=2.4275, @days_of_grant=1, @fuyoNissu=1, @date=2007-06-12T00:00:00+00:00, @bid_high=2.4298, @bidLow=2.4256, @bid=2.4267
@sell_swap=-147, @hasseibi=2007-06-12T00:00:00+00:00, @day_before_to=33.0, @bidHigh=163.8, @tsukaPair=, @buy_swap=143, @kaiSwap=143, @ask_rate=163.83, @zenjitsuhi=33, @bid_low=163.39, @currency_pair_code=2, @uriSwap=-147, @bid_rate=163.78, @ask=163.83, @days_of_grant=1, @fuyoNissu=1, @date=2007-06-12T00:00:00+00:00, @bid_high=163.8, @bidLow=163.39, @bid=163.78
@sell_swap=-390, @hasseibi=2007-06-12T00:00:00+00:00, @day_before_to=6.0, @bidHigh=17.19, @tsukaPair=, @buy_swap=370, @kaiSwap=370, @ask_rate=17.25, @zenjitsuhi=6, @bid_low=17.12, @currency_pair_code=8, @uriSwap=-390, @bid_rate=17.18, @ask=17.25, @days_of_grant=1, @fuyoNissu=1, @date=2007-06-12T00:00:00+00:00, @bid_high=17.19, @bidLow=17.12, @bid=17.18
@sell_swap=-104, @hasseibi=2007-06-12T00:00:00+00:00, @day_before_to=-3.0, @bidHigh=1.2285, @tsukaPair=, @buy_swap=100, @kaiSwap=100, @ask_rate=1.23, @zenjitsuhi=-3, @bid_low=1.2264, @currency_pair_code=14, @uriSwap=-104, @bid_rate=1.2273, @ask=1.23, @days_of_grant=1, @fuyoNissu=1, @date=2007-06-12T00:00:00+00:00, @bid_high=1.2285, @bidLow=1.2264, @bid=1.2273
@sell_swap=-306, @hasseibi=2007-06-12T00:00:00+00:00, @day_before_to=30.0, @bidHigh=240.33, @tsukaPair=, @buy_swap=301, @kaiSwap=301, @ask_rate=240.37, @zenjitsuhi=30, @bid_low=239.86, @currency_pair_code=3, @uriSwap=-306, @bid_rate=240.29, @ask=240.37, @days_of_grant=1, @fuyoNissu=1, @date=2007-06-12T00:00:00+00:00, @bid_high=240.33, @bidLow=239.86, @bid=240.29
@sell_swap=64, @hasseibi=2007-06-12T00:00:00+00:00, @day_before_to=6.0, @bidHigh=1.3454, @tsukaPair=, @buy_swap=-68, @kaiSwap=-68, @ask_rate=1.3463, @zenjitsuhi=6, @bid_low=1.344, @currency_pair_code=9, @uriSwap=64, @bid_rate=1.345, @ask=1.3463, @days_of_grant=1, @fuyoNissu=1, @date=2007-06-12T00:00:00+00:00, @bid_high=1.3454, @bidLow=1.344, @bid=1.345
@sell_swap=-152, @hasseibi=2007-06-12T00:00:00+00:00, @day_before_to=18.0, @bidHigh=99.88, @tsukaPair=, @buy_swap=148, @kaiSwap=148, @ask_rate=99.8, @zenjitsuhi=18, @bid_low=99.49, @currency_pair_code=4, @uriSwap=-152, @bid_rate=99.74, @ask=99.8, @days_of_grant=1, @fuyoNissu=1, @date=2007-06-12T00:00:00+00:00, @bid_high=99.88, @bidLow=99.49, @bid=99.74
@sell_swap=-3, @hasseibi=2007-06-12T00:00:00+00:00, @day_before_to=-5.0, @bidHigh=1.9733, @tsukaPair=, @buy_swap=-2, @kaiSwap=-2, @ask_rate=1.9747, @zenjitsuhi=-5, @bid_low=1.9719, @currency_pair_code=10, @uriSwap=-3, @bid_rate=1.9723, @ask=1.9747, @days_of_grant=1, @fuyoNissu=1, @date=2007-06-12T00:00:00+00:00, @bid_high=1.9733, @bidLow=1.9719, @bid=1.9723

--- order - buy
@open_interest_no=10000000001, @tategyokuBango=10000000001, @settlement_order_no=, @chumonBango=10000000001, @stop_order_no=, @order_no=10000000001, @limit_order_no=

--- order - sell
@open_interest_no=10000000001, @tategyokuBango=10000000001, @settlement_order_no=, @chumonBango=10000000001, @stop_order_no=, @order_no=10000000001, @limit_order_no=

--- settle
@stop_settlement_order_no=, @open_interest_no=1, @limit_settlement_order_no=, @settlement_order_no=10000000001, @chumonBango=10000000001, @kessaiTategyokuBango=1
@stop_settlement_order_no=, @open_interest_no=1, @limit_settlement_order_no=, @settlement_order_no=10000000001, @chumonBango=10000000001, @kessaiTategyokuBango=1

--- order - basic sell
@open_interest_no=, @settlement_order_no=, @chumonBango=10000000001, @stop_order_no=, @order_no=10000000001, @limit_order_no=

--- edit_order

--- cancel_order

--- settle - basic
@stop_settlement_order_no=, @open_interest_no=1, @limit_settlement_order_no=, @settlement_order_no=10000000001, @chumonBango=10000000001, @kessaiTategyokuBango=1

--- order - oco
@open_interest_no=, @settlement_order_no=, @gyakusashiChumonBango=10000000002, @stop_order_no=10000000002, @order_no=, @sashineChumonBango=10000000001, @limit_order_no=10000000001

--- edit - oco

--- settle - oco
@stop_settlement_order_no=10000000002, @open_interest_no=1, @limit_settlement_order_no=10000000001, @settlement_order_no=, @gyakusashiChumonBango=10000000002, @sashineChumonBango=10000000001, @kessaiTategyokuBango=1

--- order - ifd
@open_interest_no=, @shinkiChumonBango=10000000001, @settlement_order_no=10000000002, @stop_order_no=, @order_no=10000000001, @limit_order_no=, @kessaiChumonBango=10000000002

--- edit - ifd

--- order - ifd-oco
@open_interest_no=, @shinkiChumonBango=10000000001, @kessaiGyakusashiChumonBango=10000000003, @settlement_order_no=, @stop_order_no=, @order_no=10000000001, @kessaiSashineChumonBango=10000000002, @limit_order_no=

--- edit - ifd-oco

--- list_orders
@trade_type=0, @yakujoRate=, @henkoTorikeshiKano=1, @order_state=20, @yukoKigen=0, @rate=121.0, @hatchuSuryo=10000, @agreement_date=, @enable_change_or_cancel=true, @fuseiritsuRiyu=0, @expiration_date=, @hatchuNichiji=2007-05-29T13:17:00+00:00, @trade_quantity=10000.0, @baibai=0, @chumonBango=10000000001, @agreement_rate=, @order_no=10000000001, @chumonJotai=20, @expiration_type=0, @shikko=1, @sell_or_buy=0, @yakujoNichiji=, @torihiki=0, @failure_reason=0, @date=2007-05-29T13:17:00+00:00, @yukoNichiji=, @execution_expression=1, @chumonRate=121.0
@trade_type=1, @yakujoRate=, @henkoTorikeshiKano=1, @order_state=10, @yukoKigen=0, @rate=122.0, @hatchuSuryo=10000, @agreement_date=, @enable_change_or_cancel=true, @fuseiritsuRiyu=0, @expiration_date=, @hatchuNichiji=2007-05-29T13:17:00+00:00, @trade_quantity=10000.0, @baibai=1, @chumonBango=10000000002, @agreement_rate=, @order_no=10000000002, @chumonJotai=10, @expiration_type=0, @shikko=1, @sell_or_buy=1, @yakujoNichiji=, @torihiki=1, @failure_reason=0, @date=2007-05-29T13:17:00+00:00, @yukoNichiji=, @execution_expression=1, @chumonRate=122
@trade_type=1, @yakujoRate=, @henkoTorikeshiKano=1, @order_state=10, @yukoKigen=0, @rate=120.0, @hatchuSuryo=10000, @agreement_date=, @enable_change_or_cancel=true, @fuseiritsuRiyu=0, @expiration_date=, @hatchuNichiji=2007-05-29T13:17:00+00:00, @trade_quantity=10000.0, @baibai=1, @chumonBango=10000000003, @agreement_rate=, @order_no=10000000003, @chumonJotai=10, @expiration_type=0, @shikko=1, @sell_or_buy=1, @yakujoNichiji=, @torihiki=1, @failure_reason=0, @date=2007-05-29T13:17:00+00:00, @yukoNichiji=, @execution_expression=1, @chumonRate=120

--- list_open_interests
@ruikeiSwap=1404, @suryo=10000, @tategyokuBango=10000000001, @tsukaPair=, @hyokaRate=121.09, @baibai=0, @chumonKano=1, @currency_pair_code=1, @tategyokuRate=121.15, @yakujoNichiji=2007-05-29T13:17:00+00:00, @hyokaSoneki=-600, @chumonSuryo=0

--- list_execution_results
@ukewatashibi=2007-05-31T00:00:00+00:00, @yakujoRate=121.56, @ruikeiSwap=0, @tsukaPair=, @yakujoSuryo=100000, @kessaiSoneki=-14000, @baibai=1, @chumonBango=10000000003, @currency_pair_code=1, @kessaiTaisho=10000000001, @tategyokuRate=121.7, @tesuryo=0, @yakujoNichiji=2007-05-29T13:17:00+00:00, @torihiki=1
@ukewatashibi=2007-05-31T00:00:00+00:00, @yakujoRate=121.56, @ruikeiSwap=0, @tsukaPair=, @yakujoSuryo=100000, @kessaiSoneki=-14000, @baibai=1, @chumonBango=10000000003, @currency_pair_code=1, @kessaiTaisho=10000000001, @tategyokuRate=121.7, @tesuryo=0, @yakujoNichiji=2007-05-29T13:17:00+00:00, @torihiki=1

--- get_margin
@settlement_profit_or_loss_of_today=0, @shimegoFurikae=0, @guarantee_money_list=@guarantee_money=12116, @tsukaPairCode=1, @currency_pair_code=1, @torihikiShokokin=12116@guarantee_money=16261, @tsukaPairCode=2, @currency_pair_code=2, @torihikiShokokin=16261@guarantee_money=24063, @tsukaPairCode=3, @currency_pair_code=3, @torihikiShokokin=24063@guarantee_money=9929, @tsukaPairCode=4, @currency_pair_code=4, @torihikiShokokin=9929@guarantee_money=8794, @tsukaPairCode=5, @currency_pair_code=5, @torihikiShokokin=8794@guarantee_money=11175, @tsukaPairCode=6, @currency_pair_code=6, @torihikiShokokin=11175@guarantee_money=9865, @tsukaPairCode=7, @currency_pair_code=7, @torihikiShokokin=9865@guarantee_money=16930, @tsukaPairCode=8, @currency_pair_code=8, @torihikiShokokin=16930@guarantee_money=16259, @tsukaPairCode=9, @currency_pair_code=9, @torihikiShokokin=16259@guarantee_money=24062, @tsukaPairCode=10, @currency_pair_code=10, @torihikiShokokin=24062@guarantee_money=9918, @tsukaPairCode=11, @currency_pair_code=11, @torihikiShokokin=9918@guarantee_money=16259, @tsukaPairCode=12, @currency_pair_code=12, @torihikiShokokin=16259@guarantee_money=24058, @tsukaPairCode=13, @currency_pair_code=13, @torihikiShokokin=24058@guarantee_money=12110, @tsukaPairCode=14, @currency_pair_code=14, @torihikiShokokin=12110, @market_value=8945360, @chumonShokokin=0, @jikaHyokaSogaku=8945360, @swap_profit_or_loss=-15800, @margin=7733760, @kessaiSonekiT2=0, @yoryoku=7733760, @balance_of_cach=9251160, @genkinZandaka=9251160, @ordered_guarantee_money=0, @guarantee_money_maintenance_ratio=738.3, @hitsuyoShokokin=1211600, @shokokinIjiritsu=738.3, @settlement_profit_or_loss_of_next_next_business_day=0, @kessaiSonekiT1=0, @balance_in_account=9235360, @kozaZandaka=9235360, @required_guarantee_money=1211600, @guarantee_money_status=1, @kosokuShokokin=1211600, @shokokinStatus=1, @settlement_profit_or_loss_of_next_business_day=0, @kessaiSonekiT=0, @appraisal_profit_or_loss_of_open_interest=-290000, @torihikiShokokinList=
    , @tategyokuHyokaSoneki=-290000, @freezed_guarantee_money=1211600, @transferable_money_amount=7733760, @swapSoneki=-15800, @furikaeKano=7733760

--- list_messages
@taishosha=1, @riyo=0, @text=お知らせ内容の本文です。, @title=2007年05月18日(金)お知らせ内容のタイトル