Giter Club home page Giter Club logo

bitmexformulas's Introduction

BitMEX Formulas

The Bitcoin Mercantile Exchange BitMEX is a trading platform that offers investors access to the global financial markets using only Bitcoin.

General Formulas

Risk

RiskPercentage = ((EntryPrice โ€” StopLoss) / EntryPrice) * 100

Product Specific Formulas

Liquidation Price

Most BitMEX contracts are highly leveraged. To keep these positions open, traders are required to hold a percentage of the value of the position on the exchange, known as the Maintenance Margin percentage. If you cannot fulfill your maintenance requirement, you will be liquidated and your maintenance margin will be lost. The liquidation price is the price at which you have exhausted your MMR and it is the price at which your position will be closed.

Leverage

Sometimes referred to as margin trading, leverage trading involves borrowing funds to amplify potential returns when buying and selling cryptocurrency. When you leverage trade, you can access increased buying power and may open positions that are much larger than your actual account balance. Leverage trading is speculative and riskier than non-leveraged trading.

XBTUSD Formulas

XBTUSD is a leveraged trading product that allows traders to speculate on the Bitcoin/USD exchange rate with up to 100x leverage.

Liquidation

Long or short? liq = entry / (1 + ((1/Leverage) + 0.0015) - 0.0066)

Long Entry

?

Short Entry

?

Leverage

Long Entry

?

Short Entry

?

ETHUSD

ETHUSD is a leveraged trading product that allows traders to speculate on the Ethereum/USD exchange rate with up to 50x leverage.

Liquidation

Long Entry

LiquidationPrice = EntryPrice * (1.01 - 1 / Leverage + 1/10000) and rounded up to nearest 0.05 (ceiling)

Short Entry

LiquidationPrice = -EntryPrice * (-0,99-1 / Leverage + 1 / 10000) or? LiquidationPrice = EntryPrice * (1 + 1 / Leverage - 1/100) floor 0.05

Leverage

Long Entry

Leverage = Math.Floor((-1.0015) / ((LiquidationPrice / EntryPrice) - 1.0015 - 0,01))

Short Entry

Leverage = 1 / (LiquidationPrice / EntryPrice - 0.99)

LTC

Liquidation

Long Entry

LiquidationPrice =(EntryPrice - (EntryPrice * ((1/Leverage) + 0,005))) +(EntryPrice * 0,02)

Short Entry

?

Leverage

Long Entry

?

Short Entry

?

bitmexformulas's People

Contributors

sfvicente avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.