Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1, "Missing or empty parameters:" when using addOrder #32

Open
GalGreenfield opened this issue Apr 30, 2018 · 2 comments
Open

v1, "Missing or empty parameters:" when using addOrder #32

GalGreenfield opened this issue Apr 30, 2018 · 2 comments

Comments

@GalGreenfield
Copy link

GalGreenfield commented Apr 30, 2018

Hello,

I'm trying to use the addOrder method of the following data:

  • URL: https://api.coinigy.com/api/v1/addOrder

  • Content-Type: application/json
    X-API-KEY: <my_api_key>
    X-API-SECRET: <my_api_secret>
    
  • auth_id: 332719,
    exch_id: 15,
    mkt_id: 5110,
    order_type_id: 2,
    price_type_id: 3,
    limit_price: 5678,
    order_quantity: 1
    

And I'm getting the error:

"Missing or empty parameters:"

The full response is:

{
    "error_num": "1057-33-01"
    "err_msg": "Missing or empty parameters"
}

without any parameter stated.
I don't know if there's anything wrong with my request.
All the data that I inserted to it seems to me like it shouldn't make the request unacceptable by your API.

Can someone please help me?

@ghost
Copy link

ghost commented Jun 8, 2018

Similar issue here.
using in my API call:
values = json.dumps({'exchange_code': exchange[1]})
to get markets works perfectly, but:
values = json.dumps({ 'exchange_code': exchange[1], 'exchange_market': market[2], 'type': 'history' }).encode('utf-8')
to get market_data history returns:
{u'err_msg': u'Missing or empty parameters:', u'err_num': u'1057-14-01'}
but if I print values I get:
{"exchange_market": "XRP/USD", "type": "history", "exchange_code": "BITS"}
can someone help me here..
I also tried to remove the json.dumps() function with same result.
Thank you for your help.

NOTE: obviously that exchange and market variables return exch_name and mkt_name.

@ghost
Copy link

ghost commented Jun 8, 2018

Solved it.
The problem was that I was creating a dictionary that didn't fit the required parameters, that hold the correct one dict. By expand this dictionary parameters fit.
Sorry for the inconvenience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant