GithubHelp home page GithubHelp logo

lstarby / bitmex-local-proxy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bitmex/bitmex-local-proxy

0.0 0.0 0.0 156 KB

A simple proxy to the BitMEX API, intended for use with webapps.

JavaScript 100.00%

bitmex-local-proxy's Introduction

BitMEX-Local-Proxy

A really simple proxy intended for use with webapps, as we are not serving CORS headers on our API.

Usage:

npm install
node proxy.js 2080
curl localhost:2080/instrument
> [{"symbol":"XBTP14","state":"Open","typ":"FXXXS","listing":"2014-06-27T12:00:00.000Z"...

Why would I use this?

This is just an example for use with your custom web application that hits the BitMEX API.

BitMEX intentionally does not server Access-Control-Allow-Origin headers on its API so that calls cannot accidentally or maliciously be made from other origins, from the user's browser.

If you want users of your site to make calls to BitMEX's API, say, for orderBook or ticker data, you must proxy it rather than make a direct AJAX request from the user's browser.

bitmex-local-proxy's People

Contributors

strml 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.