Skip to content

Conversation

@andresh3
Copy link
Contributor

Hey,

I implemented some minor changes

  • Changes to README.md as some of the examples did not work with the most modern version (e.g, eo.order versus eo.equity_order
  • Added some of the following methods to the EquityOrder class:
    • modify(order_id, [order_type, duration, limit_price, stop_price]) modifies an existing order.
    • delete(order_id) deletes an existing order
    • fetch(order_id) fetches information about a specific order.
  • enabled live trading functionality for Equity Orders (live_trade=[True,False])
  • Removed tradier.py from the uvatradier/ directory; seems to be a duplicate and belongs in the legacy/ directory.
  • Updated some code calling float(...) on a DataFrame with a singular element so it no longer uses depreciated behavior.
  • Updated the version to 0.4.2 to reflect a patch.
  • Ay Zigga Zoomba

andresh3 added 11 commits July 17, 2024 18:04
Updated documentation to reflect current EquityOrder usage.
Added support for the preview flag in orders; allows you to preview an order prior to placing.
Added the fetch(...) and delete(...) methods to the EquityOrder object
allowing users to fetch order info (e.g., checking status of open order)
and to ability to delete equity orders.
Enabled live trading option for EquityOrder object.
tradier.py is a duplicate of legacy/tradier.py. It is not used
in current version.
Updated README.md to fix some minor inconsistencies.
Added in modify function to the EquityOrder object. Allows users to
modify existing orders.
Updated readme to include mention of the EquityOrder delete and modify
methods. Additionally, changed the order(...) method example to show position
arguments insteado of implying all arguments are optional.
quotes.py:
Calling float(...) on a single element series is depreciated in pandas.
Changed line 225 from `float(df_quote['last']);` to `float(df_quote['last'].iloc[0]);`

setup.py:
Changed version patch number to reflect the minor changes implemented.
@thammo4
Copy link
Owner

thammo4 commented Jul 19, 2024

Hey I just saw your pull request - thanks so much! I really appreciate it. I hadn't even realized that the EquityOrder class was missing the live_trade argument. I'm gonna take a look at your work and then merge the changes.

Thanks again for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants