github.com/bitfinexcom/bitfinex-api-go@v0.0.0-20210608095005-9e0b26f200fb/CHANGELOG (about) 1 3.0.5 2 - Features 3 - rate limit to avoid 429 HTTP status codes when subscribing too often 4 - Fixes 5 - auth channel payload event name to avoid invalid channel exception 6 7 3.0.4 8 - Adds new rest v2 functions 9 - tickers/hist 10 11 3.0.3 12 - Features 13 - new websocket manager. Please refer to `/examples/ws` for usage examples. 14 - updating models to accept and be able to map additional fields from api payload 15 16 3.0.2 17 - Fixes 18 - nonce issue to be compatible with other libraries 19 20 3.0.1 21 - New rest v2 functions 22 - Pulse.AddComment 23 - Fixes 24 - Pulse.PulseHistory: no longer requires isPublic Bool argument 25 - tradeexecutionupdate.FromRaw: now aware of extra value in response payload 26 27 3.0.0 28 - split of legacy types.go into small, test covered modules: 29 - bitfinex.OrderFlagHidden -> common.FundingPrefix 30 - bitfinex.OrderFlagClose -> common.OrderFlagClose 31 - bitfinex.OrderFlagPostOnly -> common.OrderFlagPostOnly 32 - bitfinex.OrderFlagOCO -> common.OrderFlagOCO 33 - bitfinex.Checksum -> common.Checksum 34 - bitfinex.OrderTypeExchangeLimit -> common.OrderTypeExchangeLimit 35 - bitfinex.PermissionRead -> common.PermissionRead 36 - bitfinex.PermissionWrite -> common.PermissionWrite 37 - bitfinex.FundingPrefix -> common.FundingPrefix 38 - bitfinex.TradingPrefix -> common.TradingPrefix 39 - bitfinex.FundingSizeKey -> common.FundingSizeKey 40 - bitfinex.CreditSizeKey -> common.CreditSizeKey 41 - bitfinex.CreditSizeSymKey -> common.CreditSizeSymKey 42 - bitfinex.PositionSizeKey -> common.PositionSizeKey 43 - bitfinex.Bid -> common.Bid 44 - bitfinex.Ask -> common.Ask 45 - bitfinex.Long -> common.Long 46 - bitfinex.Short -> common.Short 47 - bitfinex.OldestFirst -> common.OldestFirst 48 - bitfinex.NewestFirst -> common.NewestFirst 49 - bitfinex.OneMinute -> common.OneMinute 50 - bitfinex.FiveMinutes -> common.FiveMinutes 51 - bitfinex.FifteenMinutes -> common.FifteenMinutes 52 - bitfinex.ThirtyMinutes -> common.ThirtyMinutes 53 - bitfinex.OneHour -> common.OneHour 54 - bitfinex.ThreeHours -> common.ThreeHours 55 - bitfinex.SixHours -> common.SixHours 56 - bitfinex.TwelveHours -> common.TwelveHours 57 - bitfinex.OneDay -> common.OneDay 58 - bitfinex.OneWeek -> common.OneWeek 59 - bitfinex.TwoWeeks -> common.TwoWeeks 60 - bitfinex.OneMonth -> common.OneMonth 61 - bitfinex.Precision0 -> common.Precision0 62 - bitfinex.Precision1 -> common.Precision1 63 - bitfinex.Precision2 -> common.Precision2 64 - bitfinex.Precision3 -> common.Precision3 65 - bitfinex.PrecisionRawBook -> common.PrecisionRawBook 66 - bitfinex.FrequencyRealtime -> common.FrequencyRealtime 67 - bitfinex.FrequencyTwoPerSecond -> common.FrequencyTwoPerSecond 68 - bitfinex.PriceLevelDefault -> common.PriceLevelDefault 69 - bitfinex.ErrNotFound -> common.ErrNotFound 70 - bitfinex.OrderSide -> common.OrderSide 71 - bitfinex.CandleResolution -> common.CandleResolution 72 - bitfinex.BookPrecision -> common.BookPrecision 73 - bitfinex.BookFrequency -> common.BookFrequency 74 - bitfinex.SortOrder -> common.SortOrder 75 - bitfinex.QueryLimit -> common.QueryLimit 76 - bitfinex.PermissionType -> common.PermissionType 77 - bitfinex.Mts -> common.Mts 78 - bitfinex.StatKey -> common.StatKey 79 - bitfinex.StatusType -> common.StatusType 80 - bitfinex.CandleResolutionFromString -> common.CandleResolutionFromString 81 - bitfinex.OrderNewRequest -> order.NewRequest 82 - bitfinex.OrderUpdateRequest -> order.UpdateRequest 83 - bitfinex.OrderCancelRequest -> order.CancelRequest 84 - bitfinex.Order -> order.Order 85 - bitfinex.NewOrderFromRaw -> order.FromRaw 86 - bitfinex.NewOrderSnapshotFromRaw -> order.SnapshotFromRaw 87 - bitfinex.NewOrderSnapshotFromRaw -> order.SnapshotFromRaw 88 - bitfinex.OrderSnapshot -> order.Snapshot 89 - bitfinex.OrderUpdate -> order.Update 90 - bitfinex.OrderNew -> order.New 91 - bitfinex.OrderCancel -> order.Cancel 92 - bitfinex.PositionStatus -> position.Status 93 - bitfinex.Position -> position.Position 94 - bitfinex.NewPositionFromRaw -> position.FromRaw 95 - bitfinex.NewPositionSnapshotFromRaw -> position.SnapshotFromRaw 96 - bitfinex.PositionSnapshot -> position.Snapshot 97 - bitfinex.PositionNew -> position.New 98 - bitfinex.PositionUpdate -> position.Update 99 - bitfinex.PositionCancel -> position.Cancel 100 - bitfinex.ClaimPositionRequest -> position.ClaimRequest 101 - bitfinex.Trade -> trade.Trade 102 - bitfinex.NewTradeFromRaw -> trade.FromRaw 103 - bitfinex.TradeSnapshot -> trade.Snapshot 104 - bitfinex.NewTradeSnapshotFromRaw -> trade.SnapshotFromRaw 105 - bitfinex.TradeExecutionUpdate -> tradeexecutionupdate.TradeExecutionUpdate 106 - bitfinex.NewTradeExecutionUpdateFromRaw -> tradeexecutionupdate.FromRaw 107 - bitfinex.TradeExecutionUpdateSnapshot -> tradeexecutionupdate.Snapshot 108 - bitfinex.HistoricalTradeSnapshot -> tradeexecutionupdate.HistoricalTradeSnapshot 109 - bitfinex.NewTradeExecutionUpdateSnapshotFromRaw -> tradeexecutionupdate.SnapshotFromRaw 110 - bitfinex.TradeExecution -> tradeexecution.TradeExecution 111 - bitfinex.NewTradeExecutionFromRaw -> tradeexecution.FromRaw 112 - bitfinex.NewTradeExecutionFromRaw -> tradeexecution.FromRaw 113 - bitfinex.Wallet -> wallet.Wallet 114 - bitfinex.WalletUpdate -> wallet.Update 115 - bitfinex.WalletSnapshot -> wallet.Snapshot 116 - bitfinex.NewWalletFromRaw -> wallet.FromRaw 117 - bitfinex.NewWalletSnapshotFromRaw -> wallet.SnapshotFromRaw 118 - bitfinex.NewWalletSnapshotFromRaw -> wallet.SnapshotFromRaw 119 - bitfinex.BalanceInfo -> balanceinfo.BalanceInfo 120 - bitfinex.BalanceUpdate -> balanceinfo.Update 121 - bitfinex.NewBalanceInfoFromRaw -> balanceinfo.FromRaw 122 - bitfinex.MarginInfoUpdate -> margin.InfoUpdate 123 - bitfinex.MarginInfoBase -> margin.InfoBase 124 - bitfinex.NewMarginInfoFromRaw -> margin.FromRaw 125 - bitfinex.FundingInfo -> fundinginfo.FundingInfo 126 - bitfinex.NewFundingInfoFromRaw -> fundinginfo.FromRaw 127 - bitfinex.FundingOfferCancelRequest -> fundingoffer.CancelRequest 128 - bitfinex.FundingOfferRequest -> fundingoffer.SubmitRequest 129 - bitfinex.Offer -> fundingoffer.Offer 130 - bitfinex.NewOfferFromRaw -> fundingoffer.FromRaw 131 - bitfinex.FundingOfferNew -> fundingoffer.New 132 - bitfinex.FundingOfferUpdate -> fundingoffer.Update 133 - bitfinex.FundingOfferCancel -> fundingoffer.Cancel 134 - bitfinex.FundingOfferSnapshot -> fundingoffer.Snapshot 135 - bitfinex.FundingOfferSnapshot -> fundingoffer.Snapshot 136 - bitfinex.NewFundingOfferSnapshotFromRaw -> fundingoffer.SnapshotFromRaw 137 - bitfinex.Credit -> fundingcredit.Credit 138 - bitfinex.FundingCreditNew -> fundingcredit.New 139 - bitfinex.FundingCreditUpdate -> fundingcredit.Update 140 - bitfinex.FundingCreditCancel -> fundingcredit.Cancel 141 - bitfinex.FundingCreditSnapshot -> fundingcredit.Snapshot 142 - bitfinex.NewCreditFromRaw -> fundingcredit.FromRaw 143 - bitfinex.NewFundingCreditSnapshotFromRaw -> fundingcredit.SnapshotFromRaw 144 - bitfinex.NewFundingCreditSnapshotFromRaw -> fundingcredit.SnapshotFromRaw 145 - bitfinex.Loan -> fundingloan.Loan 146 - bitfinex.FundingLoanNew -> fundingloan.New 147 - bitfinex.FundingLoanUpdate -> fundingloan.Update 148 - bitfinex.FundingLoanCancel -> fundingloan.Cancel 149 - bitfinex.FundingLoanSnapshot -> fundingloan.Snapshot 150 - bitfinex.NewLoanFromRaw -> fundingloan.FromRaw 151 - bitfinex.NewFundingLoanSnapshotFromRaw -> fundingloan.SnapshotFromRaw 152 - bitfinex.FundingTrade -> fundingtrade.FundingTrade 153 - bitfinex.FundingTradeExecution -> fundingtrade.Execution 154 - bitfinex.FundingTradeUpdate -> fundingtrade.Update 155 - bitfinex.FundingTradeSnapshot -> fundingtrade.Snapshot 156 - bitfinex.HistoricalFundingTradeSnapshot -> fundingtrade.HistoricalSnapshot 157 - bitfinex.NewFundingTradeFromRaw -> fundingtrade.FromRaw 158 - bitfinex.NewFundingTradeSnapshotFromRaw -> fundingtrade.SnapshotFromRaw 159 - bitfinex.Notification -> notification.Notification 160 - bitfinex.NewNotificationFromRaw -> notification.FromRaw 161 - bitfinex.Ticker -> ticker.Ticker 162 - bitfinex.TickerSnapshot -> ticker.Snapshot 163 - bitfinex.NewTickerSnapshotFromRaw -> ticker.SnapshotFromRaw 164 - bitfinex.NewTickerFromRaw -> ticker.FromRaw 165 - bitfinex.NewTickerFromRestRaw -> ticker.FromRestRaw 166 - bitfinex.BookUpdate -> book.Book 167 - bitfinex.BookUpdateSnapshot -> book.Snapshot 168 - bitfinex.NewBookUpdateSnapshotFromRaw -> book.SnapshotFromRaw 169 - bitfinex.IsRawBook -> book.IsRawBook 170 - bitfinex.NewBookUpdateFromRaw -> book.FromRaw 171 - bitfinex.Candle -> candle.Candle 172 - bitfinex.CandleSnapshot -> candle.Snapshot 173 - bitfinex.NewCandleSnapshotFromRaw -> candle.SnapshotFromRaw 174 - bitfinex.NewCandleFromRaw -> candle.FromRaw 175 - bitfinex.ToFloat64Slice -> convert.F64Slice 176 - bitfinex.ToInterface -> convert.ToInterface 177 - bitfinex.ToInterface -> convert.ToInterface 178 - bitfinex.Ledger -> ledger.Ledger 179 - bitfinex.LedgerSnapshot -> ledger.Snapshot 180 - bitfinex.NewLedgerFromRaw -> ledger.FromRaw 181 - bitfinex.NewLedgerSnapshotFromRaw -> ledger.SnapshotFromRaw 182 - bitfinex.CurrencyConf -> currency.Conf 183 - bitfinex.ExplorerConf -> currency.ExplorerConf 184 - bitfinex.RawCurrencyConf -> currency.RawConf 185 - bitfinex.RawConf -> currency.FromRaw 186 - bitfinex.Stat -> stats.Stat 187 - bitfinex.DerivativeStatus -> derivatives.DerivativeStatus 188 - bitfinex.DerivativeStatusSnapshot -> derivatives.Snapshot 189 - bitfinex.NewDerivativeStatusFromWsRaw -> derivatives.FromWsRaw 190 - bitfinex.NewDerivativeStatusFromRaw -> derivatives.FromRaw 191 - bitfinex.NewDerivativeSnapshotFromRaw -> derivatives.SnapshotFromRaw 192 - Adds new WS v2 functions 193 - ws.CloseFundingLoan 194 - ws.CloseFundingCredit 195 - Fixes 196 - derivatives.DerivativeStatus fixed payload quality check 197 - convert.F64ValOrZero now returning float64 for non float interface representations instead of 0 198 - convert.BValOrFalse now correctly maps 0, 1, "0" and "1" to boolean values 199 - trades resource is now aware of trading and funding pairs and maps data correctly 200 - book resource is now aware of trading and funding pairs and maps data correctly 201 202 203 2.2.9 204 205 - Adds new rest v2 functions 206 - Orders.CancelOrderMulti 207 - Orders.CancelOrdersMultiOp 208 - Orders.CancelOrderMultiOp 209 - Orders.OrderNewMultiOp 210 - Orders.OrderUpdateMultiOp 211 - Orders.OrderMultiOp 212 - Invoice.GenerateInvoice 213 - Funding.KeepFunding 214 - Market.AveragePrice 215 - Market.ForeignExchangeRate 216 217 2.2.8 218 219 - Adds new rest v2 functions 220 - Pulse.PublicPulseProfile 221 - Pulse.PublicPulseHistory 222 - Pulse.AddPulse 223 - Pulse.PulseHistory 224 - Pulse.DeletePulse 225 226 2.2.7 227 228 - Separates subscriptions by socketID to prevent clashing 229 230 2.2.6 231 232 - Adds AffiliateCode field to order submission 233 - Extracts and exposes Meta field from order object 234 235 2.2.5 236 237 - hotfix: parse notify info even if type not recognised 238 239 2.2.4 240 241 - Adds new rest v2 functions 242 - Funding.Offers 243 - Funding.OfferHistory 244 - Funding.Loans 245 - Funding.LoanHistory 246 - Funding.Credits 247 - Funding.CreditHistory 248 - Funding.Trades 249 - Funding.SubmitOffer 250 - Funding.CancelOffer 251 - Orders.SubmitOrder 252 - Orders.CancelOrder 253 - Orders.SubmitUpdateOrder 254 - Orders.SubmitCancelOrder 255 - Positions.Claim 256 - Wallet.Transfer 257 - Wallet.DepositAddress 258 - Wallet.CreateDepositAddress 259 - Wallet.Withdraw 260 - Adds new ws v2 functions 261 - Ws/SubmitFundingOffer 262 - Ws/SubmitFundingCancel 263 264 2.2.3 265 266 - Add transport keep alive pinger to keep tls connection open 267 - Fix multiple small race conditions 268 269 2.2.2 270 271 - Uses channel/write combo for websocket send requests to avoid race conditions 272 - Use mutex for building snapshot to avoid race conditions 273 - Use TradeExecution as type for authenticated trade data 274 275 2.2.1 276 277 - Adds v2/rest Derivatives service with new functions 278 - SetCollateral 279 - Adds v2/rest Status service with new functions 280 - DerivativeStatus 281 - DerivativeStatusMulti 282 - DerivativeStatusAll 283 - Adds support for auth ws feed 'status' 284 - Adds ws subscription function SubscribeStatus 285 286 2.2.0 287 288 - Adds v2/ws connection multiplexer 289 - Adds v2/ws api functions ConnectionCount and StartNewConnection 290 291 2.1.1 292 293 - Removes usage of string(int) conversion in v2/rest and uses strconv.FormatInt instead 294 - Adds version file 295 - Adds changelog file 296 - Fix v2/rest response error message to be passed down correctly 297 - Rework v2/rest/orders api, change function names and add additionals