zLeki / DxTrade-Api-Go

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
MIT License
27 stars 5 forks source link

Leave some suggestions for future features #4

Open zLeki opened 6 months ago

zLeki commented 6 months ago

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.

potatoesforliferi commented 6 months ago

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.

kpathan commented 6 months ago

Add feature to update stoploss and take profit

zLeki commented 6 months ago

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

zLeki commented 6 months ago

Add feature to update stoploss and take profit

Done - I have pushed it to main branch

zLeki commented 6 months ago

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

potatoesforliferi commented 6 months ago

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

zLeki commented 6 months ago

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.

kpathan commented 6 months ago

Would like to get market data

zLeki commented 6 months ago

Would like to get market data

Unfortunately it cannot be done due to their api restrictions

kpathan commented 6 months ago

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

zLeki commented 6 months ago

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

potatoesforliferi commented 6 months ago

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

patique commented 6 months ago

@zLeki thank you very much for your awesome work

0xRowie commented 6 months ago

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

zLeki commented 6 months ago

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

0xRowie commented 6 months ago

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.

wrofe commented 6 months ago

is there an ability to grab previous candle history?

zLeki commented 6 months ago

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.

kpathan commented 6 months ago

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

zLeki commented 6 months ago

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

zLeki commented 6 months ago

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

kpathan commented 5 months ago

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 commented 5 months ago

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

Great work!!!

mubasher24 commented 3 months ago

how can i run this, noob in go