effanuel / bitmex-scaled-orders Goto Github PK
View Code? Open in Web Editor NEWBitmex trading tool using REST API and Websocket
License: MIT License
Bitmex trading tool using REST API and Websocket
License: MIT License
Places a limit order at the best bid or ask and continually adjust its price to follow the quote until the order is cancelled, filled, or a maximum chase ‘distance’ is reached.
fyi:https://docs.insilicoterminal.com/limit-tab/chase
@Effanuel Hello master.
Could you add a new feature like this one:
Crossover_BUY and Cross_under SELL ( for market order and trailing limit orders)
.
Bitmex website has a more or less this feature , but it is manually. It is using "Stop Market , but unchecking close on trigger box "
The program has to save in memory this order or algorithm and execute it when the market achieve that rule (crossover and crossunder) on the selected price ?
I know that every feature you had launched have the best quality .
This features help the traders have more possibility to have a win trade, because the trade is excecuted on the market trend .
This feature help when traders use strategies like these ones :
I think many people is going to use it, i think it is very useful.
Now that you have Maket orders and Trailing orders would be a little more easy for you.
This orders or algorithm help a lot ; this is a logic and useful feature .
I will wait your reply.
Submitting orders without stoploss produces an error. I've had to submit with a stoploss and then remove/modify it to avoid the error.
@Effanuel could you create a checked dot or checked box on the "trailing order feature " and "market order feature" , when it is checked do this :
the program automatically calculate the "quantity needed " at the current price to have a better entry and more close to the current price.
Example : I have 10,000 contracts for example on the wallet
I executed a buy order using 100 contracts at the price $1000.
Then the price move down to 999.5 so my unrealised PNL is negative, but if I execute a new order 200 contracts at the current price 999.5 my new current entry is 999.5 and so on ....
Calculate manually the exact quantity needed to us it is too slow compared to the computer; imagine if we used 3736 contracts and then the price moves against us 6 points , calculate the exact Quantity needed at the current prices takes time , time the market do not allow us. The fast we react the better the entry.
What I am trying to say is that most of the times we are on a trade but maybe we entered late and the prices goes against us but we have enough contracts to keep buying to have a better entry , but it takes time calculate the quantity value needed at the current prices to have a better entry.
Like you know the price move very fast and when we try to calcule the quantity needed on excel the prices just go away.
It is more easy the program automatically caculate and we just click or press the buy button .
I think for this enhancement the program has to display the "entry price" , "contracts executed " , the "unrealised PNL" ( dollars ) , and the "quantity needed at the current price" . I suggest to add information feature below the bitcoin price , this is just a information feature.
I will wait your answer.
Hello,
You need to set API keys before building the application.
This means that .env file is of no use after npm build
? If so the private API key being "built into" the package could cause some privacy issues, that is if you plan to add containers as a deployment method down the road.
Maybe add an option to force using the .env file?
BTW did that behavior change beetwen 1.7.1 and 1.7.2? It used to work with .env file being binded after npm build
and now I get
Regards,
Hello @Effanuel,
Very interesting approach. Are you available to discuss more details?
hello,
is it possible work with local proxy?
Hello.
I really like your software, I use it .
Could you add a Trailing buy/sell order or sticky order buy/sell order to buy or sell faster and Chase the price if it moves as close as possible and excecute it as soon as possible with limit (post only) automatically, please .
If TESTNET
.env
option is set to true, Websocket should subscribe to
wss://testnet.bitmex.com/realtime?subscribe
Websocket doesn't subscribe to testnet instrument data.
Create a new .env
file.
.env
file;
.env
file in the client/
directory;
Hello,
When going long:
Auto fill the "Lower Price" box with [current price + 1 (or a user defined amount)]
If "Higher Price" price could be set at the same time at [current price + [user] defined percentage] would be nice.
And the other way around when going short.
Regards,
Hello Effanuel .
How difficult it is add a Bybit API or primexbt ? It will take you to much time ? .
Generating multiple count orders using <ScaledOrders />
table should limit Quantity, Range start and Range end of placed orders as to not exceed the provided inputs.
Given some larger Order count
, contracts quantity and last order's price are wrongly calculated.
Check Quantity and Range end USD at the end of generating orders
Quantity
.Range end USD
Hey!
Nice tool, exactly what I was looking for! Are you actively still working on this project?
Would you be interested in adding support for KuCoin as well?
Thanks
<PreviewContainer />
should properly close, if <ScaledContainer />
components states are the same as they were after <PreviewContainer />
was opened.
If some kind of change is made and then reverted, <PreviewContainer />
doesn't close on "Preview" click.
cache
variable that sets to false after every state change.Save state after opening and check before closing/opening.
<PreviewContainer />
;<PreviewContainer />
input and then revert it;After opening the <PreviewContainer />
, stringify and save its state to compare it before every open/close of <PreviewContainer />
.
Hi,
Preset to set predifined position side and size and parameters would be nice.
Something like illustrated in the following animated gif:
From https://github.com/yerb/deribit-scaled-orders
Regards,
When sending the command npm run build an error message is produced.
sh: SET: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] build: SET NODE_ENV=production && cd ../client && npm run build && cd ../api
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
What would be involved to add XRPUSD to the list of available instruments?
I had looked at the code briefly, and it looks like the calculations are coded in, so any new instruments would require new calculations.
I've wanted to shift this tool over to run on a linux server so it can be available 24/7 and external. In order to do that, I modified the /api/package.json and /client/package.json to remove the "SET" for NODE_ENV so it would build on Linux. The SET is needed for Windows but causes build to fail on linux.
So I created a new fork, and it's currently running. Putting this issue here as an FYI.
@Effanuel I only want to use your program and not the Bitmex website.
This are the improvement that needs the program are:
Number 1: Scale order using the current price , contracts , order count , apart feature
This improvement use a apart feature instead range start and range end.
This improvement speed up place the a scale order .
This improvement do not waste time typing a range .
Example:
Number 2: Limit order with post only with a feature to place the order at the current price if the option is checked or place a normal limit order at the price that we want and has a stop-loss too.
This impovement is helpful , because we can place a limit order at a specific price or at the current price when we see a imminent reversal in price.
Number 3: Trailing order automatically reopen the order until it got filled , but do not duplicate the order or stop if we manually stop it.
This happen when the order is rejected by bitmex.
Sometimes when we use trailing order bitmex close it and there is this error :
order had excint of parcitipate do not initiate
i search on github, i found something that could solve the problem ?
ctubio/Krypto-trading-bot#969 (comment)
Number 4 : feature to paste the current price maybe a little button or just clicking the current price and a feature to increment or decrease the price just clicking a arrow up or arrow down for this button too.
stop-loss , range start , range end .
This improvement speed up place a order and we can concentrate on technical analysis and we do not waste time typing the orders.
please commnet, tell me your thought,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.