Skip to content

Commit

Permalink
Update to API v176
Browse files Browse the repository at this point in the history
  • Loading branch information
lbilli committed Sep 15, 2022
1 parent 897c6a6 commit 70b33e1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Jib"
uuid = "f310f2d2-a263-11e8-3998-47bd686f18f7"
authors = ["Luca Billi <noreply.section+dev@gmail.com>"]
version = "0.19.1"
version = "0.19.2"

[deps]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Expand Down
7 changes: 6 additions & 1 deletion src/process.jl
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,12 @@ const process = Dict{Int,Function}( # TODO Use a Tuple instead?

nd::Int = pop(it)

ContractDescription(c, collect(String, take(it, nd)))
dst = collect(String, take(it, nd))

ver Client.BOND_ISSUERID && slurp!(c, (:description,
:issuerId), it)

ContractDescription(c, dst)
end

w.symbolSamples(reqId, cd)
Expand Down
2 changes: 2 additions & 0 deletions src/requests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ function reqContractDetails(ib::Connection, reqId::Int, contract::Contract)
reqId,
splat(contract, 1:15))

ib.version Client.BOND_ISSUERID && o(contract.issuerId)

sendmsg(ib, o)
end

Expand Down
4 changes: 3 additions & 1 deletion src/types_mutable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ mutable struct Contract
includeExpired::Bool
secIdType::String
secId::String
description::String
issuerId::String
comboLegsDescrip::String
comboLegs::Vector{ComboLeg}
deltaNeutralContract::Union{DeltaNeutralContract,Nothing}
Expand All @@ -25,7 +27,7 @@ Contract(; conId= 0,
currency= ns,
localSymbol= ns) = Contract(conId, symbol, secType, ns, 0.0, ns, ns,
exchange, ns, currency, localSymbol, ns,
false, ns, ns, ns, [], nothing)
false, ns, ns, ns, ns, ns, [], nothing)


mutable struct Order
Expand Down
1 change: 1 addition & 0 deletions src/versions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
WSH_EVENT_DATA_FILTERS_DATE = 173
INSTRUMENT_TIMEZONE = 174
HMDS_MARKET_DATA_IN_SHARES = 175
BOND_ISSUERID = 176

end

0 comments on commit 70b33e1

Please sign in to comment.