AI4Finance-Foundation / AI4Finance-Foundation/FinRL_Crypto

PaperTrading Deployment

オープン
#7 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
201
フォーク
88
PR マージ指標
30日以内にマージされた PR はありません

説明

I'm trying to deploy a trained model to begin paper trading on alpaca (Debian GNU/Linux 11)

Among the available options "**AlpacaPaperTradingMultiCrypto**" seems to be out dated, specifically theses lines:

```
agent.init(net_dim, state_dim, action_dim)
agent.save_or_load_agent(cwd=cwd, if_save=False)
```

which return ".... no method init " as well as "....no method save_or_load_agent"

I also tried using '**PaperTradingAlpaca**', which return

```

Market opened.
Empty DataFrame
Columns: [index, tic]
Index: []
Traceback (most recent call last):
File "/.../paperTrade2.py", line 888, in
paperTrade.run()
File "/paperTrade2.py", line 614, in run
self.trade()
File "/paperTrade2.py", line 634, in trade
state = self.get_state()
File ".../paperTrade2.py", line 725, in get_state
price, tech, turbulence = alpaca.fetch_latest_data(
File "/.../myenv2/lib/python3.10/site-packages/finrl/meta/data_processors/processor_alpaca.py", line 328, in fetch_latest_data
start_time = data_df.timestamp.min()
File "/home/scamma/myenv2/lib/python3.10/site-packages/pandas/core/generic.py", line 5989, in __getattr__
return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'timestamp'. Did you mean: 'to_timestamp'?
```

It looks like the data retrieval isn't successful but the model was loaded. The weird thing is that I've actually deployed one of my bots to alpaca (trading crypto) before with much ease.

I should also mention that the model was trained using **finrl_crypto**. Please assist in anyway possible.

What would be the best environment to achieve this?
what could be causing the issue in "fetch_Data" of the alpaca processor ?

Do you require any additional info?

any recommendations?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。