Skip to content

Commit b98eadb

Browse files
Merge pull request #121 from BitGo/update-bitgo-api-docs
Update API reference on BitGo Developer Portal
2 parents 428e3c6 + 124a409 commit b98eadb

File tree

1 file changed

+105
-26
lines changed

1 file changed

+105
-26
lines changed

api.yaml

Lines changed: 105 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20524,7 +20524,7 @@ paths:
2052420524
$ref: '#/components/schemas/Error'
2052520525
post:
2052620526
summary: Place Order
20527-
description: Places a new order. There are several types of orders available - Market, Limit, and TWAP (with or without a limit). Orders can only be placed if your account has a sufficient balance. When an order is placed, funds will be reserved for the amount of the order.
20527+
description: Places a new order. There are several types of orders available - Market, Limit, TWAP and SteadyPace (with or without a limit). Orders can only be placed if your account has a sufficient balance. When an order is placed, funds will be reserved for the amount of the order.
2052820528
operationId: trade.orders.add
2052920529
tags:
2053020530
- Trade REST API
@@ -44840,6 +44840,58 @@ components:
4484044840
- $ref: '#/components/schemas/NewMarketOrderRequest'
4484144841
- $ref: '#/components/schemas/NewLimitOrderRequest'
4484244842
- $ref: '#/components/schemas/NewTWAPOrderRequest'
44843+
- $ref: '#/components/schemas/NewSteadyPaceOrderRequest'
44844+
NewSteadyPaceOrderRequest:
44845+
title: SteadyPace
44846+
required:
44847+
- product
44848+
- quantity
44849+
- quantityCurrency
44850+
- side
44851+
- type
44852+
type: object
44853+
properties:
44854+
clientOrderId:
44855+
type: string
44856+
description: Custom order ID. This must be a unique ID associated with an order and cannot be the same across multiple requests.
44857+
maxLength: 256
44858+
product:
44859+
type: string
44860+
description: Product name e.g. BTC-USD
44861+
type:
44862+
type: string
44863+
description: Must be set to "twap"
44864+
fundingType:
44865+
$ref: '#/components/schemas/FundingType'
44866+
side:
44867+
$ref: '#/components/schemas/Side'
44868+
quantity:
44869+
type: string
44870+
format: decimal
44871+
quantityCurrency:
44872+
type: string
44873+
description: The quantity currency must be in quote currency for buy unless a limit price is specified, in which case buy orders can only be placed in the base currency. For sell, the quantity currency must be in base. e.g. If product is BTC-USD, the base currency will be BTC.
44874+
limitPrice:
44875+
type: string
44876+
format: decimal
44877+
scheduledDate:
44878+
type: string
44879+
format: date-time
44880+
parameters:
44881+
allOf:
44882+
- $ref: '#/components/schemas/SteadyPaceOrderParameters'
44883+
example:
44884+
clientOrderId: myorder1
44885+
type: steady_pace
44886+
product: BTC-USD
44887+
side: buy
44888+
quantity: '100000'
44889+
quantityCurrency: USD
44890+
parameters:
44891+
interval: 5
44892+
intervalUnit: minute
44893+
subOrderSize: '20000'
44894+
variance: 0.02
4484344895
NewTWAPOrderRequest:
4484444896
title: TWAP
4484544897
required:
@@ -44883,23 +44935,9 @@ components:
4488344935
scheduledDate:
4488444936
type: string
4488544937
format: date-time
44886-
isTimeSliced:
44887-
type: boolean
44888-
description: |
44889-
The isTimeSliced field, when provided under the parameters section, determines the order's time slicing behavior:
44890-
- If isTimeSliced is set to true, the order will be executed using a time-sliced strategy.
44891-
- If isTimeSliced is set to false, the order will be executed using a regular TWAP strategy without time slicing.
44892-
- If isTimeSliced is not specified, the default behavior uses a regular TWAP strategy without time slicing.
44893-
boundsControl:
44894-
type: string
44895-
description: |
44896-
The boundsControl field, when provided under the parameters section, determines how strictly the TWAP algorithm adheres to the target fill progression.
44897-
- It is optional but can be provided for a regular TWAP strategy.
44898-
- Default value is 'standard'.
44899-
enum:
44900-
- narrow
44901-
- standard
44902-
- wide
44938+
parameters:
44939+
allOf:
44940+
- $ref: '#/components/schemas/TWAPOrderParameters'
4490344941
example:
4490444942
clientOrderId: myorder1
4490544943
type: twap
@@ -45301,14 +45339,9 @@ components:
4530145339
- insufficientFunds
4530245340
example: insufficientFunds
4530345341
parameters:
45304-
type: object
45305-
properties:
45306-
isTimeSliced:
45307-
type: boolean
45308-
description: Indicates if the order is a time-sliced TWAP.
45309-
boundsControl:
45310-
type: string
45311-
description: Defines the bounds control strategy used to manage a regular TWAP order.
45342+
allOf:
45343+
- $ref: '#/components/schemas/TWAPOrderParameters'
45344+
- $ref: '#/components/schemas/SteadyPaceOrderParameters'
4531245345
example:
4531345346
id: 67fd640c-cb6c-4218-80ae-49e79ec15646
4531445347
accountId: 60e740e7898f7d00064d43769a73dc48
@@ -50857,6 +50890,32 @@ components:
5085750890
- page
5085850891
- totalPages
5085950892
- totalElements
50893+
SteadyPaceOrderParameters:
50894+
type: object
50895+
required:
50896+
- interval
50897+
- intervalUnit
50898+
- subOrderSize
50899+
properties:
50900+
interval:
50901+
type: integer
50902+
description: The interval for the SteadyPace order, specified in conjunction with the interval unit.
50903+
intervalUnit:
50904+
type: string
50905+
description: The unit of time for the interval. Defaults to "minute".
50906+
enum:
50907+
- second
50908+
- minute
50909+
- hour
50910+
- day
50911+
subOrderSize:
50912+
type: string
50913+
description: The size of each sub-order in the SteadyPace order.
50914+
variance:
50915+
type: number
50916+
description: |
50917+
Optional degree of randomization for sub-order sizes. Accepts a decimal value rounded to two decimal places between 0 and 1, representing the variation in the size of each sub-order.
50918+
For example, a value of 0.20 indicates a 20% variance.
5086050919
StellarAddress:
5086150920
title: Stellar Address
5086250921
type: object
@@ -51064,6 +51123,26 @@ components:
5106451123
type: string
5106551124
required:
5106651125
- tokenName
51126+
TWAPOrderParameters:
51127+
type: object
51128+
properties:
51129+
isTimeSliced:
51130+
type: boolean
51131+
description: |
51132+
The isTimeSliced field, when provided under the parameters section, determines the order's time slicing behavior:
51133+
- If isTimeSliced is set to true, the order will be executed using a time-sliced strategy.
51134+
- If isTimeSliced is set to false, the order will be executed using a regular TWAP strategy without time slicing.
51135+
- If isTimeSliced is not specified, the default behavior uses a regular TWAP strategy without time slicing.
51136+
boundsControl:
51137+
type: string
51138+
description: |
51139+
The boundsControl field, when provided under the parameters section, determines how strictly the TWAP algorithm adheres to the target fill progression.
51140+
- It is optional but can be provided for a regular TWAP strategy.
51141+
- Default value is 'standard'.
51142+
enum:
51143+
- narrow
51144+
- standard
51145+
- wide
5106751146
TaoStakeIntent:
5106851147
title: Tao Stake Intent
5106951148
allOf:

0 commit comments

Comments
 (0)