itsjafer / schwab-api

A python library for placing trades on Charles Schwab
MIT License
201 stars 64 forks source link

Expanding Trade_V2 cost basis and limit price functionalities #44

Closed 4rumprom closed 6 months ago

4rumprom commented 7 months ago

Cost Basis: hardcoding FIFO for cost basis doesn't allow the user the flexibility of optimizing their taxation. Expanding the capability by adding a costBasis parameter to the function which defaults to FIFO but can handle other parameters such as LIFO or BTAX (Tax Lot Optimized by Schwab) for instance.

Limit_price: when using limit order ( order_type = 50 ), the limit pricing must be formatted a certain way. Adding a piece of code that handles formatting and adds a warning in messages if the format had to be adjusted automatically.