GithubHelp home page GithubHelp logo

Comments (5)

bluusun avatar bluusun commented on June 20, 2024

{
"success": true,
"failure_reason": "UNKNOWN_FAILURE_REASON",
"order_id": "vvvv-4ef9-9587-fc71dee4f912",
"success_response": {
"order_id": "vvvd2a-4ef9-9587-fc71dee4f912",
"product_id": "LTC-USD",
"side": "BUY",
"client_order_id": "clientOrderId"
},
"order_configuration": {
"sor_limit_ioc": {
"base_size": "1",
"limit_price": "82.9"
}
}
}

from coinbase-advanced-py.

bluusun avatar bluusun commented on June 20, 2024

Also how can I sell (market or limit) 1 LTC for instance? Could not find that in documentation :(

from coinbase-advanced-py.

bluusun avatar bluusun commented on June 20, 2024

order = client.market_order_sell(client_order_id="clientOrderId",product_id='LTC-USD',base_size='0.01')

print(dumps(order, indent=2))
{
"success": true,
"failure_reason": "UNKNOWN_FAILURE_REASON",
"order_id": "vd2a-4ef9-9587-fc71dev",
"success_response": {
"order_id": "vvvd2a-4ef9-9587-fc7v12",
"product_id": "LTC-USD",
"side": "SELL",
"client_order_id": "clientOrderId"
},
"order_configuration": {
"market_market_ioc": {
"base_size": "0.01"
}
}
}

from coinbase-advanced-py.

xiaofeihuang-cb avatar xiaofeihuang-cb commented on June 20, 2024

Thank you for reporting! If this is an SDK specific issue, we will look into it and get back to you soon. If this is an API related request, report it in our Advanced API Discord instead (use this invite link if it's your first time accessing the Discord).

from coinbase-advanced-py.

bluusun avatar bluusun commented on June 20, 2024

Figured it out!

  1. client_order_id needs to be a unique string or nothing happens
  2. engine spits out "success": true,
    "failure_reason": "UNKNOWN_FAILURE_REASON",

if it accepts order and/or executes order. Really confusing!

from coinbase-advanced-py.

Related Issues (15)

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.