Skip to content

Latest commit

 

History

History
118 lines (86 loc) · 1.31 KB

transactionApi.md

File metadata and controls

118 lines (86 loc) · 1.31 KB

Trading Buy

URL : /api/user/transaction/buy Method : POST Auth required : YES

Header constraints

{
  "Authorization": "Bearer __JWT__"
}

Data constraints

{
  "quantity": "20",
  "currency": "BNBBTC"
}
Success Response

Code : 201 OK

Content examples

[]

Trading Buy

URL : /api/user/transaction/sell Method : POST Auth required : YES

Header constraints

{
  "Authorization": "Bearer __JWT__"
}

Data constraints

{
  "quantity": "20",
  "currency": "BNBBTC"
}
Success Response

Code : 201 OK

Content examples

[]

Trading Buy

URL : /api/user/transaction Method : GET Auth required : YES

Header constraints

{
  "Authorization": "Bearer __JWT__"
}

Data constraints

{
}
Success Response

Code : 201 OK

Content examples

[
  {
    "quantity": 24,
    "symbol": "Dogecoin",
    "api_symbol": "DOGEUSDT",
    "price": 0.18,
    "action": "buy",
    "bought_at": "2021-12-07T12:07:23.000000Z"
  },
  {
    "quantity": 20,
    "symbol": "Dogecoin",
    "api_symbol": "DOGEUSDT",
    "price": 0.18,
    "action": "sell",
    "bought_at": "2021-12-07T12:18:08.000000Z"
  }
]