cmahon / interactive-brokers Goto Github PK
View Code? Open in Web Editor NEWInteractive Brokers API
License: BSD 3-Clause "New" or "Revised" License
Interactive Brokers API
License: BSD 3-Clause "New" or "Revised" License
I noticed that Builder.hs only provides 2 functions, one for futures & one for market orders.
Is this library also geared to be used for stock securities, or will it simply only target forex & currencies?
The readme says it's a work in progress. Is there any plans to finish the library?
I am curious if i should implement my own library; it seems I'm interested in different features.
Another thing I would suggest is to use lazy bytestring for output of Builders. All builders produces lazy bytestring by default. And writing lazy bytestring maybe more efficient since it may uses vector writes. pipes-network 0.6.4 have lazy bytestring write support.
-- These are merely suggestions, I have not tested them
parseEmptyField :: Parser ()
parseEmptyField = char sepC *> return () -- no need to call (string "")
-- avoid (s == "") and read . eg:
parseIntField' :: Parser Int -- shouldn't this be Parser (Maybe Int)?
parseIntField' = (parseEmptyField *> return 0) <|> parseIntField
-- avoid using String. eg:
parseMaybeEmpty :: Parser a -> Parser (Maybe a)
-- This will NEVER fail, which is similar to your implementation.
-- remove last "return Nothing" to allow it to fail.
parseMaybeEmpty parser = mconcat $
[ (parseEmptyField *> return Nothing)
, Just <$> parser
, return Nothing
]
-- combine boolean parsers
parseBool :: Parser Bool
parseBool = mconcat $ parseField <$>
[ char '1' <|> stringCI "true" *> return True
, char '0' <|> stringCI "false" *> return False
]
Other than "why-not":
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.