zLeki/DxTrade-Api-Go

Leave some suggestions for future features

zLeki opened this issue · 24 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.

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.

Add feature to update stoploss and take profit

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

Add feature to update stoploss and take profit

Done - I have pushed it to main branch

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

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

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.

Would like to get market data

Would like to get market data

Unfortunately it cannot be done due to their api restrictions

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

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

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

@zLeki thank you very much for your awesome work

@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?

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

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.

is there an ability to grab previous candle history?

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.

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

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

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

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 Thank you for your help! I am pushing an update which includes the ability to fetch candlestick data.

Great work!!!

how can i run this, noob in go