-
Notifications
You must be signed in to change notification settings - Fork 0
/
update_trade_transaction_type.go
39 lines (34 loc) · 1.45 KB
/
update_trade_transaction_type.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package transactapi
import (
"net/http"
)
type UpdateTradeTransactionTypeRequest struct {
ClientID string `json:"clientID"`
DeveloperAPIKey string `json:"developerAPIKey"`
TradeID string `json:"tradeId"`
TransactionType string `json:"transactionType"`
}
type UpdateTradeTransactionTypeResponse struct {
StatusCode string `json:"statusCode"`
StatusDesc string `json:"statusDesc"`
TradeDetails []updateTradeTransactionTypetradeDetail `json:"TradeDetails"`
}
type updateTradeTransactionTypetradeDetail struct {
OrderID string `json:"orderId"`
ID string `json:"id"`
TransactionType string `json:"transactionType"`
DeveloperAPIKey string `json:"developerAPIKey"`
OfferingID string `json:"offeringId"`
AccountID string `json:"accountId"`
PartyID string `json:"partyId"`
PartyType string `json:"party_type"`
TotalAmount string `json:"totalAmount"`
TotalShares string `json:"totalShares"`
OrderStatus string `json:"orderStatus"`
}
// Update trade transaction type
//
// Reference: https://transactapi.readme.io/reference/updatetradetransactiontype
func (c *Client) UpdateTradeTransactionType(req *UpdateTradeTransactionTypeRequest) (*UpdateTradeTransactionTypeResponse, error) {
return request[UpdateTradeTransactionTypeRequest, UpdateTradeTransactionTypeResponse](c, http.MethodPost, EndpointUpdateTradeTransactionType, req)
}