POST Pair

https://correx.io/api/v1/pair

Body

formdata
Field Value Type
symbol ETHBTC Required

{"code":200,"title":"Success","data":{"symbol":"ETHBTC","pair":"ETH\/BTC","lastPrice":0.031417,"priceChange":0.000214,"highPrice":0.031696,"lowPrice":0.031041,"volume":107022.409}}
Field Type Description
code Integer 200
title String Success
data Object {"symbol":"ETHBTC","pair":"ETH\/BTC","lastPrice":0.031417,"priceChange":0.000214,"highPrice":0.031696,"lowPrice":0.031041,"volume":107022.409}

{"code":404,"title":"Error","message":"An Error Message"}
Field Type Description
code Integer 404
title String Error
message String An Error Message
Example RequestPair
                                                
    curl --request POST 
    --url https://correx.io/api/v1/pair 
    --header 'content-type: multipart/form-data' 
     
    --form symbol='ETHBTC' 
                                                    
                                            

POST Pairs

https://correx.io/api/v1/pairs

Body

formdata
Field Value Type

{"code":200,"title":"Success","data":[{"pair":"ETH\/BTC","symbol":"ETHBTC","lastPrice":0.031417,"priceChange":0.000214},{"pair":"LTC\/BTC","symbol":"LTCBTC","lastPrice":0.008086,"priceChange":1.5e-5},{"pair":"NEO\/BTC","symbol":"NEOBTC","lastPrice":0.002507,"priceChange":-5.1e-5}]}
Field Type Description
code Integer 200
title String Success
data Object [{"pair":"ETH\/BTC","symbol":"ETHBTC","lastPrice":0.031417,"priceChange":0.000214},{"pair":"LTC\/BTC","symbol":"LTCBTC","lastPrice":0.008086,"priceChange":1.5e-5},{"pair":"NEO\/BTC","symbol":"NEOBTC","lastPrice":0.002507,"priceChange":-5.1e-5}]

{"code":404,"title":"Error","message":"An Error Message"}
Field Type Description
code Integer 404
title String Error
message String An Error Message
Example RequestPairs
                                                
    curl --request POST 
    --url https://correx.io/api/v1/pairs 
    --header 'content-type: multipart/form-data' 
                                                    
                                            

POST Trade History

https://correx.io/api/v1/trade_history

Body

formdata
Field Value Type
symbol ETHBTC Required

{"code":200,"title":"Success","data":{"trades":[{"price":"0.03116800","quantity":"0.06900000","timestamp":1540542991992,"maker":"true"},{"price":0.031174,"quantity":0.384,"timestamp":1540542990150,"maker":"false"}],"sell_orders":[{"price":0.031168,"quantity":0.069,"timestamp":1540542991992,"maker":"true"}],"buy_orders":[{"price":0.031174,"quantity":0.384,"timestamp":1540542990150,"maker":"false"}]}}
Field Type Description
code Integer 200
title String Success
data Object {"trades":[{"price":"0.03116800","quantity":"0.06900000","timestamp":1540542991992,"maker":"true"},{"price":0.031174,"quantity":0.384,"timestamp":1540542990150,"maker":"false"}],"sell_orders":[{"price":0.031168,"quantity":0.069,"timestamp":1540542991992,"maker":"true"}],"buy_orders":[{"price":0.031174,"quantity":0.384,"timestamp":1540542990150,"maker":"false"}]}

{"code":404,"title":"Error","message":"An Error Message"}
Field Type Description
code Integer 404
title String Error
message String An Error Message
Example RequestTrade History
                                                
    curl --request POST 
    --url https://correx.io/api/v1/trade_history 
    --header 'content-type: multipart/form-data' 
     
    --form symbol='ETHBTC' 
                                                    
                                            

POST Market Buy

https://correx.io/api/v1/buy

Body

formdata
Field Value Type
api_key LzIY7RQ0TzVMx5uBmUZG Required
buy_amount 0.003 Required
type market Required
f_coin BTC Required
s_coin ETH Required

{"code":200,"title":"Success","message":"Currency successfully added for buy"}
Field Type Description
code Integer 200
title String Success
message String Currency successfully added for buy

{"code":404,"title":"Error","message":"An Error Message"}
Field Type Description
code Integer 404
title String Error
message String An Error Message
Example RequestMarket Buy
                                                
    curl --request POST 
    --url https://correx.io/api/v1/buy 
    --header 'content-type: multipart/form-data' 
     
    --form api_key='LzIY7RQ0TzVMx5uBmUZG' 
     
    --form buy_amount='0.003' 
     
    --form type='market' 
     
    --form f_coin='BTC' 
     
    --form s_coin='ETH' 
                                                    
                                            

POST Market Sell

https://correx.io/api/v1/sell

Body

formdata
Field Value Type
api_key LzIY7RQ0TzVMx5uBmUZG Required
sell_amount 0.003 Required
type market Required
f_coin BTC Required
s_coin ETH Required

{"code":200,"title":"Success","message":"Currency successfully added for sell"}
Field Type Description
code Integer 200
title String Success
message String Currency successfully added for sell

{"code":404,"title":"Error","message":"An Error Message"}
Field Type Description
code Integer 404
title String Error
message String An Error Message
Example RequestMarket Sell
                                                
    curl --request POST 
    --url https://correx.io/api/v1/sell 
    --header 'content-type: multipart/form-data' 
     
    --form api_key='LzIY7RQ0TzVMx5uBmUZG' 
     
    --form sell_amount='0.003' 
     
    --form type='market' 
     
    --form f_coin='BTC' 
     
    --form s_coin='ETH' 
                                                    
                                            

POST Stop Limit Buy

https://correx.io/api/v1/stop_limit_buy

Body

formdata
Field Value Type
api_key LzIY7RQ0TzVMx5uBmUZG Required
buy_amount 0.003 Required
buy_price 0.031178 Required
stopPrice 0.031178 Required
f_coin ETH Required
s_coin BTC Required

{"code":200,"title":"Success","message":"Currency successfully added for buy"}
Field Type Description
code Integer 200
title String Success
message String Currency successfully added for buy

{"code":404,"title":"Error","message":"An Error Message"}
Field Type Description
code Integer 404
title String Error
message String An Error Message
Example RequestStop Limit Buy
                                                
    curl --request POST 
    --url https://correx.io/api/v1/stop_limit_buy 
    --header 'content-type: multipart/form-data' 
     
    --form api_key='LzIY7RQ0TzVMx5uBmUZG' 
     
    --form buy_amount='0.003' 
     
    --form buy_price='0.031178' 
     
    --form stopPrice='0.031178' 
     
    --form f_coin='ETH' 
     
    --form s_coin='BTC' 
                                                    
                                            

POST Stop Limit Sell

https://correx.io/api/v1/stop_limit_sell

Body

formdata
Field Value Type
api_key LzIY7RQ0TzVMx5uBmUZG Required
sell_amount 0.003 Required
sell_price 0.031178 Required
stopPrice 0.031178 Required
f_coin ETH Required
s_coin BTC Required

{"code":200,"title":"Success","message":"Currency successfully added for sell"}
Field Type Description
code Integer 200
title String Success
message String Currency successfully added for sell

{"code":404,"title":"Error","message":"An Error Message"}
Field Type Description
code Integer 404
title String Error
message String An Error Message
Example RequestStop Limit Sell
                                                
    curl --request POST 
    --url https://correx.io/api/v1/stop_limit_sell 
    --header 'content-type: multipart/form-data' 
     
    --form api_key='LzIY7RQ0TzVMx5uBmUZG' 
     
    --form sell_amount='0.003' 
     
    --form sell_price='0.031178' 
     
    --form stopPrice='0.031178' 
     
    --form f_coin='ETH' 
     
    --form s_coin='BTC' 
                                                    
                                            

POST Cancel Stop Limit Order

https://correx.io/api/v1/cancel_order

Body

formdata
Field Value Type
api_key LzIY7RQ0TzVMx5uBmUZG Required
did 108 Required

{"code":200,"title":"Success"}
Field Type Description
code Integer 200
title String Success

{"code":404,"title":"Error","message":"An Error Message"}
Field Type Description
code Integer 404
title String Error
message String An Error Message
Example RequestCancel Stop Limit Order
                                                
    curl --request POST 
    --url https://correx.io/api/v1/cancel_order 
    --header 'content-type: multipart/form-data' 
     
    --form api_key='LzIY7RQ0TzVMx5uBmUZG' 
     
    --form did='108' 
                                                    
                                            

POST Delete Stop Limit Order

https://correx.io/api/v1/delete_order

Body

formdata
Field Value Type
api_key LzIY7RQ0TzVMx5uBmUZG Required
oid 108 Required

{"code":200,"title":"Success","message":"Cancel Order Deleted"}
Field Type Description
code Integer 200
title String Success
message String Cancel Order Deleted

{"code":404,"title":"Error","message":"An Error Message"}
Field Type Description
code Integer 404
title String Error
message String An Error Message
Example RequestDelete Stop Limit Order
                                                
    curl --request POST 
    --url https://correx.io/api/v1/delete_order 
    --header 'content-type: multipart/form-data' 
     
    --form api_key='LzIY7RQ0TzVMx5uBmUZG' 
     
    --form oid='108' 
                                                    
                                            

POST My 24h Order History

https://correx.io/api/v1/order_history

Body

formdata
Field Value Type
api_key LzIY7RQ0TzVMx5uBmUZG Required
symbol ETHBTC Required

{"code":200,"title":"Success","data":[{"order_type":"buy market","order_price":0.031232,"order_amount":2,"order_symbol":"ETH\/BTC","order_total":0.062464,"order_created_on":"2018-10-26 10:04:52","user_login":"mayur99092","order_status":"FILLED"}]}
Field Type Description
code Integer 200
title String Success
data Object [{"order_type":"buy market","order_price":0.031232,"order_amount":2,"order_symbol":"ETH\/BTC","order_total":0.062464,"order_created_on":"2018-10-26 10:04:52","user_login":"mayur99092","order_status":"FILLED"}]

{"code":404,"title":"Error","message":"An Error Message"}
Field Type Description
code Integer 404
title String Error
message String An Error Message
Example RequestMy 24h Order History
                                                
    curl --request POST 
    --url https://correx.io/api/v1/order_history 
    --header 'content-type: multipart/form-data' 
     
    --form api_key='LzIY7RQ0TzVMx5uBmUZG' 
     
    --form symbol='ETHBTC' 
                                                    
                                            

POST Stop Limit Order History

https://correx.io/api/v1/order_history_stop_limit

Body

formdata
Field Value Type
api_key LzIY7RQ0TzVMx5uBmUZG Required
symbol ETHBTC Required

{"code":200,"title":"Success","data":[{"id":76,"user_id":310,"sl_stop":0.031689,"sl_amount":0.006,"sl_limit":0.031689,"sl_type":"buy","sl_status":"FILLED"}]}
Field Type Description
code Integer 200
title String Success
data Object [{"id":76,"user_id":310,"sl_stop":0.031689,"sl_amount":0.006,"sl_limit":0.031689,"sl_type":"buy","sl_status":"FILLED"}]

{"code":404,"title":"Error","message":"An Error Message"}
Field Type Description
code Integer 404
title String Error
message String An Error Message
Example RequestStop Limit Order History
                                                
    curl --request POST 
    --url https://correx.io/api/v1/order_history_stop_limit 
    --header 'content-type: multipart/form-data' 
     
    --form api_key='LzIY7RQ0TzVMx5uBmUZG' 
     
    --form symbol='ETHBTC'