Skip to content

Commit b9cae7a

Browse files
authored
Merge pull request #20 from BitGo/update-bitgo-api-docs
Update API reference on BitGo Developer Portal
2 parents 8ce6360 + cfd510a commit b9cae7a

File tree

1 file changed

+102
-0
lines changed

1 file changed

+102
-0
lines changed

api.yaml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34723,6 +34723,10 @@ components:
3472334723
description: ISO 8601 string representation of the timestamp the entry was physically posted
3472434724
example: '2019-06-12T15:28:35.773Z'
3472534725
description: General accounting entry representation
34726+
AmountString:
34727+
type: string
34728+
pattern: ^\d+$
34729+
example: '10100'
3472634730
BlockHash:
3472734731
type: string
3472834732
example: 0000000000000296ed56abee6cb78e40b00c47a03d92e71dd92c4862ca636b95
@@ -34763,6 +34767,104 @@ components:
3476334767
notation:
3476434768
type: string
3476534769
description: The notation on this entry in the DAS ledger
34770+
FeeDescriptor:
34771+
title: General Fee Descriptor
34772+
description: define a fee charged as part of a transaction (same currency only)
34773+
type: object
34774+
properties:
34775+
amount:
34776+
$ref: '#/components/schemas/AmountString'
34777+
notation:
34778+
type: string
34779+
description: Short notation for fee source/info
34780+
example: on chain fee
34781+
fee_type:
34782+
type: string
34783+
enum:
34784+
- WIRE_FEE
34785+
- ELECTRONIC_FEE
34786+
- BANK_FEE
34787+
- CHAIN_FEE
34788+
- BITGO_WITHDRAWAL_FEE
34789+
- BITGO_SETTLEMENT_FEE
34790+
description: 'Each fee type may be treated differently by accounting, revenue fee types: BITGO_WITHDRAWAL_FEE, BITGO_SETTLEMENT_FEE'
34791+
example: BITGO_SETTLEMENT_FEE
34792+
TradeAmountDescriptor:
34793+
type: object
34794+
required:
34795+
- walletId
34796+
- currency
34797+
- amount
34798+
properties:
34799+
walletId:
34800+
$ref: '#/components/schemas/WalletId'
34801+
currency:
34802+
$ref: '#/components/schemas/Coin'
34803+
amount:
34804+
$ref: '#/components/schemas/AmountString'
34805+
receiveAmount:
34806+
$ref: '#/components/schemas/AmountString'
34807+
receiveCurrency:
34808+
$ref: '#/components/schemas/Coin'
34809+
marketValue:
34810+
$ref: '#/components/schemas/AmountString'
34811+
TradeDescriptor:
34812+
allOf:
34813+
- $ref: '#/components/schemas/TradeAmountDescriptor'
34814+
- type: object
34815+
required:
34816+
- backingWallet
34817+
properties:
34818+
backingWallet:
34819+
$ref: '#/components/schemas/WalletId'
34820+
tradeId:
34821+
type: string
34822+
example: abcdef2345abc
34823+
TradeLockDescSigned:
34824+
description: requester party of two-sided locks
34825+
allOf:
34826+
- $ref: '#/components/schemas/TradeLockDescriptor'
34827+
- $ref: '#/components/schemas/TradeSignature'
34828+
TradeLockDescriptor:
34829+
allOf:
34830+
- type: object
34831+
required:
34832+
- lockId
34833+
properties:
34834+
lockId:
34835+
type: string
34836+
example: abcdef012345
34837+
- $ref: '#/components/schemas/TradeAmountDescriptor'
34838+
TradeOneSidedLockSignedDesc:
34839+
allOf:
34840+
- $ref: '#/components/schemas/TradeSignature'
34841+
- type: object
34842+
required:
34843+
- walletId
34844+
properties:
34845+
walletId:
34846+
type: string
34847+
description: walletId of the party signing the payload with their signature
34848+
TradeRequestSigned:
34849+
allOf:
34850+
- $ref: '#/components/schemas/TradeDescriptor'
34851+
- type: object
34852+
properties:
34853+
fees:
34854+
$ref: '#/components/schemas/FeeDescriptor'
34855+
- $ref: '#/components/schemas/TradeSignature'
34856+
TradeSignature:
34857+
type: object
34858+
required:
34859+
- payload
34860+
- signature
34861+
properties:
34862+
payload:
34863+
type: string
34864+
description: 'Stringified(serialized) JSON object containing at least: amount, walletId, currency, and otherParties (for trade). Should also have a significant nonce or salt.'
34865+
signature:
34866+
type: string
34867+
description: Signature of the payload using the proper private key.
3476634868
TxId:
3476734869
type: string
3476834870
description: The on-chain transaction id

0 commit comments

Comments
 (0)