-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcreate_order_params.json5
35 lines (25 loc) · 1.03 KB
/
create_order_params.json5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// https://docs.cloud.coinbase.com/advanced-trade-api/reference/retailbrokerageapi_postorder
//
// pyexch --method post --url https://api.coinbase.com/api/v3/brokerage/orders
//
// Either --auth coinbase.oauth2 or --auth coinbase.v3_api will work
{
// pyexch --call new_uuid
"client_order_id": "cdef0123-4567-89ab-cdef-0123456789ab",
// Order book to place the order on
"product_id": "BTC-USD",
// Generally either BUY or SELL
"side": "BUY",
// The order object
"order_configuration": {
// One of {market_market_ioc, limit_limit_gtc, limit_limit_gtd, stop_limit_stop_limit_gtc, stop_limit_stop_limit_gtd}
"limit_limit_gtc": {
// Books are named BASE-COUNTER, so this is the BTC amount your working with
"base_size": "0.000030",
// Counter currency (USD) price point to trigger on
"limit_price": "45000",
// Means to ensure this is 100% maker. False to allow the order to split b/t maker/taker
"post_only": true
}
}
}