Skip to content

Commit 84b5a38

Browse files
author
Hartmut Bischoff
committed
Prepare for gem-release
1 parent 7869512 commit 84b5a38

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

Gemfile.lock

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ GIT
77
PATH
88
remote: .
99
specs:
10-
ib-api (972.1)
10+
ib-api (972.2)
1111
activemodel
1212
activesupport (>= 6.0)
1313

1414
GEM
1515
remote: https://rubygems.org/
1616
specs:
17-
activemodel (6.1.0)
18-
activesupport (= 6.1.0)
19-
activesupport (6.1.0)
17+
activemodel (6.1.2.1)
18+
activesupport (= 6.1.2.1)
19+
activesupport (6.1.2.1)
2020
concurrent-ruby (~> 1.0, >= 1.0.2)
2121
i18n (>= 1.6, < 2)
2222
minitest (>= 5.1)
2323
tzinfo (~> 2.0)
2424
zeitwerk (~> 2.3)
2525
coderay (1.1.3)
26-
concurrent-ruby (1.1.7)
26+
concurrent-ruby (1.1.8)
2727
diff-lcs (1.4.4)
2828
ffi (1.13.1)
2929
formatador (0.2.5)
@@ -41,14 +41,14 @@ GEM
4141
guard (~> 2.1)
4242
guard-compat (~> 1.1)
4343
rspec (>= 2.99.0, < 4.0)
44-
i18n (1.8.5)
44+
i18n (1.8.9)
4545
concurrent-ruby (~> 1.0)
4646
listen (3.2.1)
4747
rb-fsevent (~> 0.10, >= 0.10.3)
4848
rb-inotify (~> 0.9, >= 0.9.10)
4949
lumberjack (1.2.8)
5050
method_source (1.0.0)
51-
minitest (5.14.2)
51+
minitest (5.14.3)
5252
nenv (0.3.0)
5353
notiffany (0.1.3)
5454
nenv (~> 0.1)
@@ -89,7 +89,7 @@ PLATFORMS
8989
ruby
9090

9191
DEPENDENCIES
92-
bundler (~> 1.17)
92+
bundler
9393
guard
9494
guard-rspec
9595
ib-api!

lib/models/ib/order.rb

+5
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,11 @@ def to_human
514514
(account ? "/#{account}" : '') +
515515
(commission ? " fee #{commission}" : '') + ">"
516516
end
517+
def serialize_rabbit
518+
{ 'Contract' => contract.present? ? contract.serialize( :option, :trading_class ): '' ,
519+
'Order' => self,
520+
'OrderState' => order_state}
521+
end
517522

518523
end # class Order
519524
end # module IB

0 commit comments

Comments
 (0)