Tag Info

New answers tagged


I wouldn't recommend downcasting, I'm sure it will work but it'll also make your code dirty. Generally, we should always avoid downcasting whenever possible, it's hard to read, hard to maintain and your code will need to waste some machine cycles for the virtual function table lookup. Fortunately, you don't have to and shouldn't do anything like that. Why ...


I have every reason to believe this is a homework so I won't code it for you. In fact, your question is not totally clear, you haven't told us what are the rows and what are the columns. We know it's a 20x20 matrix, but what it's that supposed to be? A common implementation is illustrated below: So you can have a diagonal matrix where the columns are the ...


Native support is very limited. TradeStation's WebAPI pretty much works with any language because it is wrapped in HTTP calls using RESTful. If a platform has an API that supports std C/C++ interfaces, you can write a wrapper to extend the API to python. Search for "Calling C from Python". It is more work to code, but otherwise your choices are very ...


Touch option is simply a barrier option in QuantLib. You could create one like a down-in barrier type. You can also set the payoff to a binary payoff. The payoff is represented by the StrikePayOff class. A comprehensible example is available on github here.

Top 50 recent answers are included