clickclient_scrap 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +3 -0
- data/lib/clickclient_scrap.rb +5 -4
- metadata +2 -2
data/ChangeLog
CHANGED
data/lib/clickclient_scrap.rb
CHANGED
@@ -349,9 +349,9 @@ module ClickClientScrap
|
|
349
349
|
case type
|
350
350
|
when ORDER_TYPE_MARKET_ORDER
|
351
351
|
# 成り行き
|
352
|
-
form["
|
353
|
-
form["
|
354
|
-
form["
|
352
|
+
form["P003"] = unit.to_s # 取り引き数量
|
353
|
+
form["P002.0"] = sell_or_buy == ClickClientScrap::FX::SELL ? "1" : "0" #売り/買い
|
354
|
+
form["P005"] = options[:slippage].to_s if ( options && options[:slippage] != nil ) # スリッページ
|
355
355
|
when ORDER_TYPE_NORMAL
|
356
356
|
# 指値
|
357
357
|
form["P003"] = options[:rate].to_s # レート
|
@@ -603,7 +603,8 @@ module ClickClientScrap
|
|
603
603
|
# ログアウトします。
|
604
604
|
def logout
|
605
605
|
@client.click( @links.find {|i|
|
606
|
-
i.text == "\303\233\302\270\303\236\302\261\302\263\303\204"
|
606
|
+
i.text == "\303\233\302\270\303\236\302\261\302\263\303\204" \
|
607
|
+
|| i.text == "ログアウト"
|
607
608
|
})
|
608
609
|
end
|
609
610
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clickclient_scrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masaya Yamauchi
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
12
|
+
date: 2009-12-16 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|