mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-06 07:26:47 +00:00
exchanges: Kucoin Update (#1438)
* types and orderbook handling fix * Minor types and endpoints update * Minor fixes on Kucoin * Add benchmarking test * Unit tests update and minor endpoints update * Adding updates and newly added endpoints * Add and correct funding, withdrawal, and deposit endpoints * linter and codespell fix * Adding and correcting spot trading endpoints * Completed Spot HF endpoints * Minor fix * Added OCO and Margin HF trade and other endpoints * Adding missing endpoints * Updating Isolated margin, margin v3, and v3market lending endpoints * minor codespell fix * Completed adding and fixing futures endpoints * wrapper update and fix unit tests * Updating endpoint ratelimits * Complete ratelimiter setup and endpoint functions update * Unit test configuration and update * fix linter issue * Added a ratelimiter test and heavy update on unit tests * Adding websocket update based on ChangeLog * Added newly added Earn General, Kucoin Earn and Staking endpoints * Added VIP lending endpoints * Minor linter and endpoints fix * Added unit tests, publicised functions, and minor updates * Update on wrapper funcs, unit tests, and other methods * Enexport exchange specific websocket methods * remove deprecated topic * Update wrapper based on Type, add and fix unit tests * Added a margin configuration endpoint and unit test * Update methods, types, and unit tests * Update error declaration and handling unit tests * Update method parameters and error handling * Updating unit tests and error handling * Update methods arguments, added and update unit tests * Fix unit tests and wrapper methods * Resolving unit test issues and fix faulty endpoints * Fix on unit tests and working on passphrase errors * Minor fixed on websocket and endpoint url * comment and wrapper filters issue fix * Unit tests and other minor updates * Update wrapper functions, endpoint methods, and unit tests * change require to change on two unit tests * Update unit tests, types, and endpoints * Refine and update wrapper tempo for minor adjustments * Remove code that enabled logging * Update wrapper functions, missing endpoints, response and parameter values, and unit tests * removed High-frequency orders from wrapper functions, and updated unit tests and types * Added missing fields and minor update on wrapper * Update types * Update tests and websocket channels * Update unit tests and methods error returns
This commit is contained in:
@@ -89,6 +89,9 @@ type Submit struct {
|
||||
|
||||
// Hidden when enabled orders not displaying in order book.
|
||||
Hidden bool
|
||||
|
||||
// Iceberg specifies whether or not only visible portions of orders are shown in iceberg orders
|
||||
Iceberg bool
|
||||
}
|
||||
|
||||
// SubmitResponse is what is returned after submitting an order to an exchange
|
||||
@@ -301,6 +304,8 @@ type MultiOrderRequest struct {
|
||||
// FromOrderID for some APIs require order history searching
|
||||
// from a specific orderID rather than via timestamps
|
||||
FromOrderID string
|
||||
|
||||
MarginType margin.Type
|
||||
}
|
||||
|
||||
// Status defines order status types
|
||||
@@ -418,7 +423,7 @@ type RiskManagement struct {
|
||||
TriggerPriceType PriceType
|
||||
Price float64
|
||||
|
||||
// LimitPrice limit order price when stop-los or take-profit risk management method is triggered
|
||||
// LimitPrice limit order price when stop-loss or take-profit risk management method is triggered
|
||||
LimitPrice float64
|
||||
// OrderType order type when stop-loss or take-profit risk management method is triggered.
|
||||
OrderType Type
|
||||
@@ -430,6 +435,10 @@ type RiskManagementModes struct {
|
||||
Mode string
|
||||
TakeProfit RiskManagement
|
||||
StopLoss RiskManagement
|
||||
|
||||
// StopEntry stop: 'entry': Triggers when the last trade price changes to a value at or above the stopPrice.
|
||||
// see: https://www.kucoin.com/docs/rest/spot-trading/stop-order/introduction
|
||||
StopEntry RiskManagement
|
||||
}
|
||||
|
||||
// PriceType enforces a standard for price types used for take-profit and stop-loss trigger types
|
||||
|
||||
Reference in New Issue
Block a user