Limit Orders — Universal APIs for Crypto Exchange Trade Execution

Limit Orders

Example order book: In this example, the best bid price is 5067.269 USD and the best ask price is 5071.5 USD for Bitcoin. Source: Bittrex

Immediate or Cancel (IOC) Order

POST https://dev-api.shrimpy.io/v1/users/<userId>/accounts/<exchangeAccountId>/orders
{
"baseSymbol": "ETH",
"quoteSymbol": "BTC",
"amount": "0.5",
"price": "0.0344",
"side": "BUY",
"timeInForce": "IOC"
}
POST https://dev-api.shrimpy.io/v1/users/<userId>/accounts/<exchangeAccountId>/orders
{
"baseSymbol": "ETH",
"quoteSymbol": "BTC",
"amount": "0.5",
"price": "0.0344",
"side": "BUY",
"timeInForce": "IOC"
}

Good ’Til Cancelled (GTC) Order (aka Open Order)

POST https://dev-api.shrimpy.io/v1/users/<userId>/accounts/<exchangeAccountId>/orders
{
"baseSymbol": "ETH",
"quoteSymbol": "BTC",
"amount": "0.5",
"price": "0.0344",
"side": "BUY",
"timeInForce": "GTC"
}
POST https://dev-api.shrimpy.io/v1/users/<userId>/accounts/<exchangeAccountId>/orders
{
"baseSymbol": "ETH",
"quoteSymbol": "BTC",
"amount": "0.5",
"price": "0.0344",
"side": "BUY",
"timeInForce": "GTC"
}

Order Book Data

Summary

Which exchanges are currently supported?

About Shrimpy

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
ShrimpyApp

ShrimpyApp

Shrimpy is a crypto exchange trading bot for portfolio management, indexing the market, rebalancing, and strategy backtesting. Join now at shrimpy.io.