Skip to content

Commit 3bf482b

Browse files
committed
More coverage
1 parent cdd4bed commit 3bf482b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/ext/test_interactivebrokers_ext.jl

+6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ using InteractiveBrokers
2020
# @test getproperty(wrap, :nextValidId) isa Function
2121

2222
end
23+
@testset "positions()" begin
24+
client = Lucky.service(:interactivebrokers)
25+
26+
ps = Lucky.positions(client)
27+
@test Rocket.as_subscribable(ps) isa SimpleSubscribableTrait # or ScheduledSubscribableTrait
28+
end
2329
@testset "InteractiveBrokers.Contract" begin
2430
stock = Stock(:AAPL, :USD)
2531
# TODO Requires a definition for == in InteractiveBrokers

0 commit comments

Comments
 (0)