Skip to content

Commit fd541a8

Browse files
committed
Update readme
1 parent 974aff3 commit fd541a8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ app.add_portfolio_configuration(
8383
def perform_strategy(algorithm: Algorithm, market_data: dict):
8484
# By default data is passed as polars dataframe https://pola.rs/
8585
df = market_data["BTC-ohlcv"].to_pandas()
86+
ticker_data = market_data["BTC-ticker"]
87+
algorithm.create_limit_order(
88+
target_symbol="BTC/EUR",
89+
order_side="buy",
90+
amount=0.01,
91+
price=ticker_data["ask"],
92+
)
8693

8794
if __name__ == "__main__":
8895
app.run()

0 commit comments

Comments
 (0)