The cryptocurrency exchange is considered one of the most reliable for traders. Independently explore the trading's dynamics is quite difficult, because the data on the page is changed several times per second.
With an eye to automate and speed up your work on the exchange, a client require learning how to interact with the service. Especially for this, the exchange provides a special interface for programmers.
Moreover, it is profitable for the exchange that you would bet more often and scroll through large sums. This brings the exchange money at the commission's expense and increases the trading's volume, which attracts new players.
This program interface is an abbreviation of "application programming interface". It is very easy to adapt for each treaders' personal needs. It is also enough for the player to enter the necessary page on the exchange website. And then you need to adopt the code to your software.
The most popular Bitmex API formats are:
Bitmex Websocket API.
Bitmex data API.
Bitmex API timeout.
The service offers an applications models' full range in a publisher/subscriber format with a data table on its official website. You can subscribe to changes online for all the necessary documents.
Subscription is also made almost instantly. The application is made out 1-2 minutes. Access to information after connection is not limited in speed. This is a pretty simple process to take current data directly to the software.
To get the topics that you are interested in, send them as a roster, separated by commas, in the connection line.
The sample is:
When the client linked and want to accede to a new theme, send a notification in the subsequent mode:
You may get several themes at the same time by sending a topics' array. Some themes can be subscribed without identity verification. Usually, they relate to currency rates and charts. Other topics need authentication. More often, they affect the other traders' personal data.
Do you need data on market fluctuations and deals? Bitmex API Python library has open source interface for you. Python objects for interaction are constructed applying Bravado. The process takes place automatically using an adapter object from Swagger JSON from the exchange.
Unauthorized traders are restricted to 150 requests in 5 minutes. The scope is enlarged to 300 requests within 5 minutes for verified players.
An official source suggests using the Bitmex PHP API with HTTP Keep-Alive support. Added three solutions with examples:
HTTP Keep-Alive support.
Very first version.
The code examples can be found at Github.
Exchange explains how to use HTTP Keep-Alive practice. The client obtain a request and response time for the request tantamount to the Websocket.
The official source provides only 3 applying examples the сsharp code. Users may get C# Bitmex API for:
Replace nonce with expires.
Add support for DELETE via application/json.
Add support for POST.
And the traditional link to the code is here.
This is the result which should be obtained.
Bitcoin Magazine reported that the cryptocurrency exchange research center launched new analytical website. It is called ForkMonitor.info. The site is connected to 13 Bitcoin nodes and to Bitcoin Cash.
The resource will be tracked the Bitcoin network data and its associated forkcoins. But the site's main goal is to track this data at the forks' time. Thus, the site will be potentially useful for detecting unintended errors.
An example of the Bitmex API trading algorithm is get funding rate.
Create a TestNet profile and fill in a few TBTC.
Installation: pip install bitmex-market-maker. It is extremely advised to apply virtualenv.
Make a market project. Run the market maker setup. This will create: settings.pyand market_maker/ in the active catalog.
Change settings.ru in the settings options. It is necessary to change the bot's arguments.
Take a note! The user/password authentication is not maintained.
Run DRY_RUN = True to check the cost and distribution: marketmaker [symbol].
Create a live key for your account, set BASE_URL. That's all!
An example of what happens when you start the bot.
Expanded the bot's application allows you to control the placement and orders' updating on the exchange. Code example:
Bitmex propose a feature-rich REST API and the convenient WebSocket API connection protocol. All market and user data is accessible and updated online.
Each website's function is accessible through the applications. They allow developers to create Bitmex-based applications and entirely manage them.
A set of open applications is the best in its class and unique in the retail space. It includes:
Bitmex ticker API.
Bitmex API timeout.
Bitmex data API.
Bitmex API limit order fee.
The exchange offers 2 own tools for accessing trade data (order book). The received information format is compatible with other exchanges:
UDF (known through TradingView).
Instead of outputting, here is the advise about exchange unofficial connector, created using typewritten text.
All types and methods are automatically produced by the Swagger official exposition.
Installing the application involves only 3 steps:
Installing CLI: npm install bitmex-node.
The best code editor to use is Visual Studio.
P.S. If Bitmex API Failure has occurred, the advice is to update websocket-client to the latest version.
No spam, only must know stuff