pub struct Private<Adapter> { /* private fields */ }

Implementations

Creates a new Private struct

Get an Account

Get a list of trading accounts

API Key Permissions

This endpoint requires either the “view” or “trade” permission.

Get Account History

Information for a single account. Use this endpoint when you know the account_id.

API Key Permissions

This endpoint requires either the “view” or “trade” permission.

Account Fields
FieldDescription
idAccount ID
balancetotal funds in the account
holdsfunds on hold (not available for use)
availablefunds available to withdraw or trade

Get Account History List account activity. Account activity either increases or decreases your account balance. Items are paginated and sorted latest first. See the Pagination section for retrieving additional entries after the first page.

API Key Permissions

This endpoint requires either the “view” or “trade” permission.

Entry Types
FieldDescription
typeEntry type indicates the reason for the account change.
transferFunds moved to/from Coinbase to Coinbase Pro
matchFunds moved as a result of a trade
feeFee as a result of a trade
rebateFee rebate as per our fee schedule
Details

If an entry is the result of a trade (match, fee), the details field will contain additional information about the trade.

Get Holds Holds are placed on an account for any active orders or pending withdraw requests. As an order is filled, the hold amount is updated. If an order is canceled, any remaining hold is removed. For a withdraw, once it is completed, the hold is removed.

API Key Permissions

This endpoint requires either the “view” or “trade” permission.

Type

The type of the hold will indicate why the hold exists. The hold type is order for holds related to open orders and transfer for holds related to a withdraw.

Ref

The ref field contains the id of the order or transfer which created the hold.

Make Order General function. Can be used to use own generated Order structure for order

Buy limit Makes Buy limit order

Sell limit Makes Sell limit order

Buy market Makes Buy marker order

Sell market Makes Sell marker order

Cancel an Order

Cancel a previously placed order.

If the order had no matches during its lifetime its record may be purged. This means the order details will not be available with GET /orders/.

API Key Permissions

This endpoint requires the “trade” permission.

Cancel all

With best effort, cancel all open orders. The response is a list of ids of the canceled orders.

API Key Permissions

This endpoint requires the “trade” permission.

Query Parameters
ParamDefaultDescription
product_idoptionalOnly cancel orders open for a specific product

List Orders

List your current open orders. Only open or un-settled orders are returned. As soon as an order is no longer open and settled, it will no longer appear in the default request.

API Key Permissions

This endpoint requires either the “view” or “trade” permission.

Query Parameters

| Param Default Description | | —— | –––– | ———— | | status | open, pending, active | Limit list of orders to these statuses. Passing all returns orders of all statuses. | | product_id | optional | Only list orders for a specific product |

Get an Order

Get a single order by order id.

API Key Permissions

This endpoint requires either the “view” or “trade” permission.

If the order is canceled the response may have status code 404 if the order had no matches.

List Fills

Get a list of recent fills.

API Key Permissions

This endpoint requires either the “view” or “trade” permission. DEPRECATION NOTICE - Requests without either order_id or product_id will be rejected after 8/23/18.

Trailing Volume

This request will return your 30-day trailing volume for all products. This is a cached value that’s calculated every day at midnight UTC.

#API Key Permissions This endpoint requires either the “view” or “trade” permission.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.