Gym-Trading-Env icon indicating copy to clipboard operation
Gym-Trading-Env copied to clipboard

How does evn connect to Binance for actual transactions

Open wuzxc1230123 opened this issue 1 year ago • 7 comments

I have a well-trained model, how should I switch the env to connect to Binance, is there any support here?

wuzxc1230123 avatar Jul 04 '23 03:07 wuzxc1230123

Hi, There is no support to do that for now. I will be working on it soon.

Le mar. 4 juil. 2023 à 05:06, wuzxc1230123 @.***> a écrit :

I have a well-trained model, how should I switch the env to connect to Binance, is there any support here?

— Reply to this email directly, view it on GitHub https://github.com/ClementPerroud/Gym-Trading-Env/issues/6, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOFZ2ZFUXTQTVPFN57NCYTLXOOCEBANCNFSM6AAAAAAZ5D3GU4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ClementPerroud avatar Jul 06 '23 06:07 ClementPerroud

thanks  

j @.***

 

------------------ 原始邮件 ------------------ 发件人: "Clément @.>; 发送时间: 2023年7月6日(星期四) 下午2:50 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [ClementPerroud/Gym-Trading-Env] How does evn connect to Binance for actual transactions (Issue #6)

Hi, There is no support to do that for now. I will be working on it soon.

Le mar. 4 juil. 2023 à 05:06, wuzxc1230123 @.***> a écrit :

> I have a well-trained model, how should I switch the env to connect to > Binance, is there any support here? > > — > Reply to this email directly, view it on GitHub > <" rel="noopener" target="_blank">https://github.com/ClementPerroud/Gym-Trading-Env/issues/6>;, or > unsubscribe > <" rel="noopener" target="_blank">https://github.com/notifications/unsubscribe-auth/AOFZ2ZFUXTQTVPFN57NCYTLXOOCEBANCNFSM6AAAAAAZ5D3GU4>; > . > You are receiving this because you are subscribed to this thread.Message > ID: @.***> >

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

wuzxc1230123 avatar Jul 07 '23 01:07 wuzxc1230123

any news regarding this?

BY571 avatar Aug 19 '23 16:08 BY571

I can't speak for the author of this repository. But I've built a trading engine from scratch for Binance. A stable trading engine is not something you want to hack together into a reinforcement learning environment. That's like expecting a car to be a smartphone or a smartphone to be a car. It just doesn't make sense since they are both big projects with entirely different goals.

Karlheinzniebuhr avatar Aug 19 '23 21:08 Karlheinzniebuhr

@Karlheinzniebuhr Can you share some insights on how you build yours? I think it's not shared publicly on your GitHub or at least I didn't find it

BY571 avatar Aug 20 '23 13:08 BY571

I don't know how to create such code. Can I refer to your code

@Karlheinzniebuhr

wuzxc1230123 avatar Aug 21 '23 02:08 wuzxc1230123

@Karlheinzniebuhr Can you share some insights on how you build yours? I think it's not shared publicly on your GitHub or at least I didn't find it

its not open source (thinking about making it OS) but I'll give you some insights. I used the python-binance library. Then it really depends on the nature of your bot, for example if your bot runs in fixed intervals, just create a python trigger that runs every hour for example. Once the trigger runs, you check your AI or trigger conditions, if the conditions are OK to launch a trade, you execute an order via python-binance. I recommend using batch orders with Futures since you can send your order, stop-loss and take-profit all at once. Of course, there are many more things the engine needs to handle but you will see what is missing depending on the type of bot you have.

Karlheinzniebuhr avatar Sep 07 '23 11:09 Karlheinzniebuhr