Please enable JavaScript.
Coggle requires JavaScript to display documents.
Exchange - Coggle Diagram
Exchange
controllers
Exchange
dto
Amount
number, mandatory
requested Asset
string mandatory
send Asset
string mandatory
validation pipes
send Asset
not null
mustString
Amount
not null
mustNumber
requested Asset
not null
mustString
Middlewares
ip handler
Logger
services
Exchange service
PREPARE
the object
Main Transactions
reqId
modified
Requested Amount
modified
Sent Amount
Sender
Sender Balance When Requested
modified
Sender Balance After Request
modified
Sender NCID
modified
Sender Email
modified
Receiver
Receiver NCID
modified
Receiver Balance When Requested
modified
Receiver Balance After Request
modified
Receiver Address
modified
Commission
Commission Currency
modified
Commission taken (profit)
Commission taken percentage
modified
Requested Amount Currency
modified
Request Ip
modified
Request Date
modified
FinishedDate
Schema(which operations it passed)
modified
Network Fee paid
Network Fee paid Currency
Destination Type(can be INTERNAL or EXTERNAL)
modified
Deposit Blockchain ID(if External)
Withdraw Blockchain ID (if External)
GID (if it is Coin Swap)
Transaction AssetPair
modified
CCIDsent(for credit card)
CCIDreceive(for credit card)
SentBlockAddress (if internal Blockchain Address is used)
Operator Used for sending(Binance, Coreclient, ...)
Approval
ApprovalNeededType
modified
Reason
modified
Needed
modified
Send Amount Currency
ExDetails
exPrice(calculate)
exTime
exId(binance)
bulkAmount(amount exchanged)
pair
side
microservice Schema
starter
modified
WITHDRAW
finisher
modified
DEPOSIT
list of all that should be passed
modified
['WITHDRAW', 'EXCHNAGE', 'DEPOSIT'] (order is important)
postman_provider
modified
set it to Redis
send it to WITHDRAW micorservice