OpenAPI definition
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
Version: v1
All rights reserved
http://apache.org/licenses/LICENSE-2.0.html
Access
[ Jump to Models ]
Table of Contents
Up
patch /api/v1/orders/cancel/{uuid}
(cancel)
Path parameters
uuid (required)
Path Parameter —
Return type
Example data
Content-Type: application/json
{
"dateTimeExecution" : "2000-01-23T04:56:07.000+00:00",
"fees" : [ {
"amount" : 1.4658129805029452,
"name" : "name"
}, {
"amount" : 1.4658129805029452,
"name" : "name"
} ],
"totalPrice" : 4.9437991780621135E8,
"stockQuantity" : 1280358509,
"stockTicker" : "stockTicker",
"type" : "BUYING",
"uuid" : "uuid",
"dateTimeCreation" : "2000-01-23T04:56:07.000+00:00",
"rawPrice" : 1.210617418646223E9,
"status" : "PENDING"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
OrderDTOResponse
(create)
Consumes
This API call consumes the following media types via the request header:
Request body
Return type
Example data
Content-Type: application/json
{
"dateTimeExecution" : "2000-01-23T04:56:07.000+00:00",
"fees" : [ {
"amount" : 1.4658129805029452,
"name" : "name"
}, {
"amount" : 1.4658129805029452,
"name" : "name"
} ],
"totalPrice" : 4.9437991780621135E8,
"stockQuantity" : 1280358509,
"stockTicker" : "stockTicker",
"type" : "BUYING",
"uuid" : "uuid",
"dateTimeCreation" : "2000-01-23T04:56:07.000+00:00",
"rawPrice" : 1.210617418646223E9,
"status" : "PENDING"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
OrderDTOResponse
Up
patch /api/v1/orders/confirm/{uuid}
(execute)
Path parameters
uuid (required)
Path Parameter —
Return type
Example data
Content-Type: application/json
{
"dateTimeExecution" : "2000-01-23T04:56:07.000+00:00",
"fees" : [ {
"amount" : 1.4658129805029452,
"name" : "name"
}, {
"amount" : 1.4658129805029452,
"name" : "name"
} ],
"totalPrice" : 4.9437991780621135E8,
"stockQuantity" : 1280358509,
"stockTicker" : "stockTicker",
"type" : "BUYING",
"uuid" : "uuid",
"dateTimeCreation" : "2000-01-23T04:56:07.000+00:00",
"rawPrice" : 1.210617418646223E9,
"status" : "PENDING"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
OrderDTOResponse
(fetchAll)
Return type
Example data
Content-Type: application/json
[ {
"dateTimeExecution" : "2000-01-23T04:56:07.000+00:00",
"fees" : [ {
"amount" : 1.4658129805029452,
"name" : "name"
}, {
"amount" : 1.4658129805029452,
"name" : "name"
} ],
"totalPrice" : 4.9437991780621135E8,
"stockQuantity" : 1280358509,
"stockTicker" : "stockTicker",
"type" : "BUYING",
"uuid" : "uuid",
"dateTimeCreation" : "2000-01-23T04:56:07.000+00:00",
"rawPrice" : 1.210617418646223E9,
"status" : "PENDING"
}, {
"dateTimeExecution" : "2000-01-23T04:56:07.000+00:00",
"fees" : [ {
"amount" : 1.4658129805029452,
"name" : "name"
}, {
"amount" : 1.4658129805029452,
"name" : "name"
} ],
"totalPrice" : 4.9437991780621135E8,
"stockQuantity" : 1280358509,
"stockTicker" : "stockTicker",
"type" : "BUYING",
"uuid" : "uuid",
"dateTimeCreation" : "2000-01-23T04:56:07.000+00:00",
"rawPrice" : 1.210617418646223E9,
"status" : "PENDING"
} ]
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
Up
patch /api/v1/stocks/alter/{ticker}/price
(alterStockPrice)
Path parameters
ticker (required)
Path Parameter —
Query parameters
price (required)
Query Parameter —
Return type
Example data
Content-Type: application/json
{
"ticker" : "ticker",
"price" : 0.8008281904610115,
"name" : "name"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
StockDTO
Up
delete /api/v1/stocks/delete/{ticker}
(deleteStock)
Path parameters
ticker (required)
Path Parameter —
Responses
200
OK
Up
get /api/v1/stocks/{id}
(findStockById)
Path parameters
id (required)
Path Parameter — format: int64
Return type
Example data
Content-Type: application/json
{
"ticker" : "ticker",
"price" : 0.8008281904610115,
"name" : "name"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
StockDTO
Up
get /api/v1/stocks/ticker/{ticker}
(findStockByTicker)
Path parameters
ticker (required)
Path Parameter —
Return type
Example data
Content-Type: application/json
{
"ticker" : "ticker",
"price" : 0.8008281904610115,
"name" : "name"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
StockDTO
(getAll1)
Return type
Example data
Content-Type: application/json
[ {
"ticker" : "ticker",
"price" : 0.8008281904610115,
"name" : "name"
}, {
"ticker" : "ticker",
"price" : 0.8008281904610115,
"name" : "name"
} ]
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
(insertStock)
Consumes
This API call consumes the following media types via the request header:
Request body
Return type
Example data
Content-Type: application/json
{
"ticker" : "ticker",
"price" : 0.8008281904610115,
"name" : "name"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
StockDTO
Up
post /api/v1/transactions
(createTransaction)
Consumes
This API call consumes the following media types via the request header:
Request body
Return type
Example data
Content-Type: application/json
{
"amount" : 6.027456183070403,
"type" : "DEPOSIT",
"user" : {
"name" : "name",
"cpf" : "cpf"
},
"status" : "COMPLETED"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
TransactionDTOResponse
(createUser)
Consumes
This API call consumes the following media types via the request header:
Request body
Return type
Example data
Content-Type: application/json
{
"balance" : 0.8008281904610115,
"portfolio" : {
"key" : 7
},
"cpf" : "cpf",
"name" : "name",
"transactionHistoryDTO" : [ {
"amount" : 6.027456183070403,
"type" : "DEPOSIT",
"user" : {
"name" : "name",
"cpf" : "cpf"
},
"status" : "COMPLETED"
}, {
"amount" : 6.027456183070403,
"type" : "DEPOSIT",
"user" : {
"name" : "name",
"cpf" : "cpf"
},
"status" : "COMPLETED"
} ],
"orderHistory" : [ {
"dateTimeExecution" : "2000-01-23T04:56:07.000+00:00",
"fees" : [ {
"amount" : 1.4658129805029452,
"name" : "name"
}, {
"amount" : 1.4658129805029452,
"name" : "name"
} ],
"totalPrice" : 4.9437991780621135E8,
"stockQuantity" : 1280358509,
"stockTicker" : "stockTicker",
"type" : "BUYING",
"uuid" : "uuid",
"dateTimeCreation" : "2000-01-23T04:56:07.000+00:00",
"rawPrice" : 1.210617418646223E9,
"status" : "PENDING"
}, {
"dateTimeExecution" : "2000-01-23T04:56:07.000+00:00",
"fees" : [ {
"amount" : 1.4658129805029452,
"name" : "name"
}, {
"amount" : 1.4658129805029452,
"name" : "name"
} ],
"totalPrice" : 4.9437991780621135E8,
"stockQuantity" : 1280358509,
"stockTicker" : "stockTicker",
"type" : "BUYING",
"uuid" : "uuid",
"dateTimeCreation" : "2000-01-23T04:56:07.000+00:00",
"rawPrice" : 1.210617418646223E9,
"status" : "PENDING"
} ],
"email" : "email"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
AppUserDTOResponse
Up
get /api/v1/users/cpf/{cpf}
(findUserByCpf)
Path parameters
cpf (required)
Path Parameter —
Return type
Example data
Content-Type: application/json
{
"balance" : 0.8008281904610115,
"portfolio" : {
"key" : 7
},
"cpf" : "cpf",
"name" : "name",
"transactionHistoryDTO" : [ {
"amount" : 6.027456183070403,
"type" : "DEPOSIT",
"user" : {
"name" : "name",
"cpf" : "cpf"
},
"status" : "COMPLETED"
}, {
"amount" : 6.027456183070403,
"type" : "DEPOSIT",
"user" : {
"name" : "name",
"cpf" : "cpf"
},
"status" : "COMPLETED"
} ],
"orderHistory" : [ {
"dateTimeExecution" : "2000-01-23T04:56:07.000+00:00",
"fees" : [ {
"amount" : 1.4658129805029452,
"name" : "name"
}, {
"amount" : 1.4658129805029452,
"name" : "name"
} ],
"totalPrice" : 4.9437991780621135E8,
"stockQuantity" : 1280358509,
"stockTicker" : "stockTicker",
"type" : "BUYING",
"uuid" : "uuid",
"dateTimeCreation" : "2000-01-23T04:56:07.000+00:00",
"rawPrice" : 1.210617418646223E9,
"status" : "PENDING"
}, {
"dateTimeExecution" : "2000-01-23T04:56:07.000+00:00",
"fees" : [ {
"amount" : 1.4658129805029452,
"name" : "name"
}, {
"amount" : 1.4658129805029452,
"name" : "name"
} ],
"totalPrice" : 4.9437991780621135E8,
"stockQuantity" : 1280358509,
"stockTicker" : "stockTicker",
"type" : "BUYING",
"uuid" : "uuid",
"dateTimeCreation" : "2000-01-23T04:56:07.000+00:00",
"rawPrice" : 1.210617418646223E9,
"status" : "PENDING"
} ],
"email" : "email"
}
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
AppUserDTOResponse
(getAll)
Return type
Example data
Content-Type: application/json
[ {
"balance" : 0.8008281904610115,
"portfolio" : {
"key" : 7
},
"cpf" : "cpf",
"name" : "name",
"transactionHistoryDTO" : [ {
"amount" : 6.027456183070403,
"type" : "DEPOSIT",
"user" : {
"name" : "name",
"cpf" : "cpf"
},
"status" : "COMPLETED"
}, {
"amount" : 6.027456183070403,
"type" : "DEPOSIT",
"user" : {
"name" : "name",
"cpf" : "cpf"
},
"status" : "COMPLETED"
} ],
"orderHistory" : [ {
"dateTimeExecution" : "2000-01-23T04:56:07.000+00:00",
"fees" : [ {
"amount" : 1.4658129805029452,
"name" : "name"
}, {
"amount" : 1.4658129805029452,
"name" : "name"
} ],
"totalPrice" : 4.9437991780621135E8,
"stockQuantity" : 1280358509,
"stockTicker" : "stockTicker",
"type" : "BUYING",
"uuid" : "uuid",
"dateTimeCreation" : "2000-01-23T04:56:07.000+00:00",
"rawPrice" : 1.210617418646223E9,
"status" : "PENDING"
}, {
"dateTimeExecution" : "2000-01-23T04:56:07.000+00:00",
"fees" : [ {
"amount" : 1.4658129805029452,
"name" : "name"
}, {
"amount" : 1.4658129805029452,
"name" : "name"
} ],
"totalPrice" : 4.9437991780621135E8,
"stockQuantity" : 1280358509,
"stockTicker" : "stockTicker",
"type" : "BUYING",
"uuid" : "uuid",
"dateTimeCreation" : "2000-01-23T04:56:07.000+00:00",
"rawPrice" : 1.210617418646223E9,
"status" : "PENDING"
} ],
"email" : "email"
}, {
"balance" : 0.8008281904610115,
"portfolio" : {
"key" : 7
},
"cpf" : "cpf",
"name" : "name",
"transactionHistoryDTO" : [ {
"amount" : 6.027456183070403,
"type" : "DEPOSIT",
"user" : {
"name" : "name",
"cpf" : "cpf"
},
"status" : "COMPLETED"
}, {
"amount" : 6.027456183070403,
"type" : "DEPOSIT",
"user" : {
"name" : "name",
"cpf" : "cpf"
},
"status" : "COMPLETED"
} ],
"orderHistory" : [ {
"dateTimeExecution" : "2000-01-23T04:56:07.000+00:00",
"fees" : [ {
"amount" : 1.4658129805029452,
"name" : "name"
}, {
"amount" : 1.4658129805029452,
"name" : "name"
} ],
"totalPrice" : 4.9437991780621135E8,
"stockQuantity" : 1280358509,
"stockTicker" : "stockTicker",
"type" : "BUYING",
"uuid" : "uuid",
"dateTimeCreation" : "2000-01-23T04:56:07.000+00:00",
"rawPrice" : 1.210617418646223E9,
"status" : "PENDING"
}, {
"dateTimeExecution" : "2000-01-23T04:56:07.000+00:00",
"fees" : [ {
"amount" : 1.4658129805029452,
"name" : "name"
}, {
"amount" : 1.4658129805029452,
"name" : "name"
} ],
"totalPrice" : 4.9437991780621135E8,
"stockQuantity" : 1280358509,
"stockTicker" : "stockTicker",
"type" : "BUYING",
"uuid" : "uuid",
"dateTimeCreation" : "2000-01-23T04:56:07.000+00:00",
"rawPrice" : 1.210617418646223E9,
"status" : "PENDING"
} ],
"email" : "email"
} ]
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
OK
[ Jump to Methods ]
Table of Contents
AppUserDTORequest
AppUserDTOResponse
FeeDTO
OrderDTORequest
OrderDTOResponse
StockDTO
TransactionDTORequest
TransactionDTOResponse
UserDTOForObjects
name
password
birthDate
cpf (optional)
email
cpf (optional)
name (optional)
email (optional)
balance (optional)
transactionHistoryDTO (optional)
orderHistory (optional)
portfolio (optional)
name (optional)
amount (optional)
stockTicker
stockQuantity (optional)
userCpf (optional)
type (optional)
BUYING
SELLING
userPassword (optional)
fees (optional)
stockTicker (optional)
dateTimeExecution (optional)
uuid (optional)
stockQuantity
rawPrice
totalPrice
user (optional)
status (optional)
PENDING
EXECUTED
CANCELED_BY_USER
CANCELED_LACK_FUNDS
CANCELED_NOT_ENOUGH_STOCK
EXPIRED
type (optional)
BUYING
SELLING
dateTimeCreation
price (optional)
name
ticker
userCpf (optional)
amount (optional)
type (optional)
DEPOSIT
WITHDRAWAL
user (optional)
amount (optional)
type (optional)
DEPOSIT
WITHDRAWAL
status (optional)
COMPLETED
CANCELED
name (optional)
cpf (optional)