DxTrade-Api-Go icon indicating copy to clipboard operation
DxTrade-Api-Go copied to clipboard

Leave some suggestions for future features

Open zLeki opened this issue 1 year ago • 28 comments

Any ideas would be appreciated and taken into consideration in the future, please leave some below it would help me grow this project into something larger.

zLeki avatar Feb 25 '24 22:02 zLeki

personally i would like a simpler system of setting up things like Take profits and stop losses when i set a market order. I am going to try running your code on golang, when i get the time, but i couldnt see how to set up an order like

"market buy SL 500pips TP 1000pips" sort of input.

potatoesforliferi avatar Feb 25 '24 23:02 potatoesforliferi

Add feature to update stoploss and take profit

kpathan avatar Feb 26 '24 12:02 kpathan

Gotcha, i'll work on it thank you for the suggestion

zLeki avatar Feb 26 '24 12:02 zLeki

Add feature to update stoploss and take profit

Done - I have pushed it to main branch

zLeki avatar Feb 28 '24 01:02 zLeki

personally i would like a simpler system of setting up things like Take profits and stop losses when i set a market order.

I am going to try running your code on golang, when i get the time, but i couldnt see how to set up an order like

"market buy SL 500pips TP 1000pips" sort of input.

This has also been done and is pushed to the main branch

zLeki avatar Feb 28 '24 01:02 zLeki

awesome, saw the code changes to that TP SL thing zleki, just thinking the "examples" buy stuff needs to be updated now

potatoesforliferi avatar Feb 28 '24 10:02 potatoesforliferi

awesome, saw the code changes to that TP SL thing zleki, just thinking the "examples" buy stuff needs to be updated now

You're right, i'll edit them thanks.

zLeki avatar Feb 28 '24 13:02 zLeki

Would like to get market data

kpathan avatar Mar 03 '24 02:03 kpathan

Would like to get market data

Unfortunately it cannot be done due to their api restrictions

zLeki avatar Mar 03 '24 03:03 zLeki

is there anyway I can submit trailing stop loss with if then in order /modify order

kpathan avatar Mar 03 '24 17:03 kpathan

is there anyway I can submit trailing stop loss with if then in order /modify order

Yeah but calculations must be done server side because dxtrade doesn't offer trailing stops on their platform unfortunately

zLeki avatar Mar 03 '24 17:03 zLeki

i think an installation guide and running guide might be useful. Am currently noob at golang, so not knowing where to start is tough. :)

Thank you for the library anyways :D

potatoesforliferi avatar Mar 03 '24 19:03 potatoesforliferi

@zLeki thank you very much for your awesome work

patique avatar Mar 03 '24 22:03 patique

@zLeki Thanks for your work, currently working on an EA for MT5 to copy trades to DXTrade, the only thing is that I cannot find any documentation using the https://dxtrade.*****.com/api/ endpoint? Where did you find this?

0xRowie avatar Mar 04 '24 16:03 0xRowie

A lot of digging through the chrome network tab lmao @0xRowie

zLeki avatar Mar 04 '24 16:03 zLeki

A lot of digging through the chrome network tab lmao @0xRowie

I was afraid you were going to say that, I'm doing so myself right now 😭 @zLeki

Thanks for the quick response! I appreciate it.

0xRowie avatar Mar 04 '24 17:03 0xRowie

is there an ability to grab previous candle history?

wrofe avatar Mar 13 '24 18:03 wrofe

To the best of my understanding, it seems like it can't be done. But, feel free to try your hand at it. I suggest you look at the websocket contents because the info you want is there. Sadly, the code can only get candlestick data in the browser.

zLeki avatar Mar 13 '24 19:03 zLeki

is there an ability to grab previous candle history?

I was able to solve this using web socket and requesting for quote. Please check the network trace of the dxtrade. it has lot of features. I am not good at golang or python. so my code might not be useful

kpathan avatar Mar 14 '24 12:03 kpathan

Any code will help, but thanks anyways this will be very helpful

zLeki avatar Mar 14 '24 12:03 zLeki

@kpathan Thank you for your help! I am pushing an update which includes the ability to fetch candlestick data.

zLeki avatar Mar 15 '24 22:03 zLeki

I would like to calculate lot size with fixed amount to risk.

Ex: $250 to risk, With Entry, Stoploss. Take Profit is also know, but does not matter. I am new to forex, so I need some help with that

Thanks in Advance.

kpathan avatar Apr 08 '24 04:04 kpathan

@kpathan Thank you for your help! I am pushing an update which includes the ability to fetch candlestick data.

Great work!!!

kpathan avatar Apr 08 '24 04:04 kpathan

how can i run this, noob in go

mubasher24 avatar May 24 '24 12:05 mubasher24

Hello,

in the description of project is published the following information.

"API for dxtrade that can be used with all golang applications to open, close, and manage positions with your dxtrade account. It works with all prop firms or companies that use dxtrade"

We have tried to connect this SDK with any DXTRADE account but without success. Could you provide some small example how to use your SDK with any DXTRADE account ?

Thank you in advance.

orfeysoft avatar Dec 09 '24 15:12 orfeysoft

Hello,

in the description of project is published the following information.

"API for dxtrade that can be used with all golang applications to open, close, and manage positions with your dxtrade account. It works with all prop firms or companies that use dxtrade"

We have tried to connect this SDK with any DXTRADE account but without success. Could you provide some small example how to use your SDK with any DXTRADE account ?

Thank you in advance.

I cannot maintain this repository anymore since my contract with FTMO ended, we can troubleshoot if you would like in a new issue thread. Apologizes for the late reply.

zLeki avatar Jan 02 '25 02:01 zLeki

I have two different DXTrade Demo accounts and can provide them for testing. Please give me a valid email, I will send the account credentials. Thanks !

orfeysoft avatar Jan 02 '25 16:01 orfeysoft

@orfeysoft shoot me an email at [email protected] and I'll give it a shot this week.

zLeki avatar Jan 03 '25 19:01 zLeki