package ccxt // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code type binanceus struct { binance } func NewBinanceusCore() binanceus { p := binanceus{} setDefaults(&p) return p } func (this *binanceus) Describe() interface{} { return this.DeepExtend(this.binance.Describe(), map[string]interface{} { "id": "binanceus", "name": "Binance US", "countries": []interface{}{"US"}, "hostname": "binance.us", "rateLimit": 50, "certified": false, "pro": true, "urls": map[string]interface{} { "logo": "https://github.com/user-attachments/assets/a9667919-b632-4d52-a832-df89f8a35e8c", "api": map[string]interface{} { "web": "https://www.binance.us", "public": "https://api.binance.us/api/v3", "private": "https://api.binance.us/api/v3", "sapi": "https://api.binance.us/sapi/v1", "sapiV2": "https://api.binance.us/sapi/v2", "sapiV3": "https://api.binance.us/sapi/v3", }, "www": "https://www.binance.us", "referral": "https://www.binance.us/?ref=35005074", "doc": "https://github.com/binance-us/binance-official-api-docs", "fees": "https://www.binance.us/en/fee/schedule", }, "fees": map[string]interface{} { "trading": map[string]interface{} { "tierBased": true, "percentage": true, "taker": this.ParseNumber("0.001"), "maker": this.ParseNumber("0.001"), }, }, "options": map[string]interface{} { "fetchMarkets": []interface{}{"spot"}, "defaultType": "spot", "fetchMargins": false, "quoteOrderQty": false, }, "has": map[string]interface{} { "CORS": nil, "spot": true, "margin": false, "swap": false, "future": nil, "option": false, "addMargin": false, "closeAllPositions": false, "closePosition": false, "createReduceOnlyOrder": false, "fetchBorrowInterest": false, "fetchBorrowRate": false, "fetchBorrowRateHistories": false, "fetchBorrowRateHistory": false, "fetchBorrowRates": false, "fetchBorrowRatesPerSymbol": false, "fetchFundingHistory": false, "fetchFundingRate": false, "fetchFundingRateHistory": false, "fetchFundingRates": false, "fetchIndexOHLCV": false, "fetchIsolatedPositions": false, "fetchLeverage": false, "fetchLeverageTiers": false, "fetchMarketLeverageTiers": false, "fetchMarkOHLCV": false, "fetchOpenInterestHistory": false, "fetchPosition": false, "fetchPositions": false, "fetchPositionsRisk": false, "fetchPremiumIndexOHLCV": false, "reduceMargin": false, "setLeverage": false, "setMargin": false, "setMarginMode": false, "setPositionMode": false, }, "api": map[string]interface{} { "public": map[string]interface{} { "get": map[string]interface{} { "ping": 1, "time": 1, "exchangeInfo": 10, "trades": 1, "historicalTrades": 5, "aggTrades": 1, "depth": map[string]interface{} { "cost": 1, "byLimit": []interface{}{[]interface{}{100, 1}, []interface{}{500, 5}, []interface{}{1000, 10}, []interface{}{5000, 50}}, }, "klines": 1, "ticker/price": map[string]interface{} { "cost": 1, "noSymbol": 2, }, "avgPrice": 1, "ticker/bookTicker": map[string]interface{} { "cost": 1, "noSymbol": 2, }, "ticker/24hr": map[string]interface{} { "cost": 1, "noSymbol": 40, }, "ticker": map[string]interface{} { "cost": 2, "noSymbol": 100, }, }, }, "private": map[string]interface{} { "get": map[string]interface{} { "account": 10, "rateLimit/order": 20, "order": 2, "openOrders": map[string]interface{} { "cost": 3, "noSymbol": 40, }, "myTrades": 10, "myPreventedMatches": 10, "allOrders": 10, "orderList": 2, "allOrderList": 10, "openOrderList": 3, }, "post": map[string]interface{} { "order": 1, "order/test": 1, "order/cancelReplace": 1, "order/oco": 1, }, "delete": map[string]interface{} { "order": 1, "openOrders": 1, "orderList": 1, }, }, "sapi": map[string]interface{} { "get": map[string]interface{} { "system/status": 1, "asset/assetDistributionHistory": 1, "asset/query/trading-fee": 1, "asset/query/trading-volume": 1, "sub-account/spotSummary": 1, "sub-account/status": 1, "otc/coinPairs": 1, "otc/orders/{orderId}": 1, "otc/orders": 1, "ocbs/orders": 1, "capital/config/getall": 1, "capital/withdraw/history": 1, "fiatpayment/query/withdraw/history": 1, "capital/deposit/address": 1, "capital/deposit/hisrec": 1, "fiatpayment/query/deposit/history": 1, "capital/sub-account/deposit/address": 1, "capital/sub-account/deposit/history": 1, "asset/query/dust-logs": 1, "asset/query/dust-assets": 1, "marketing/referral/reward/history": 1, "staking/asset": 1, "staking/stakingBalance": 1, "staking/history": 1, "staking/stakingRewardsHistory": 1, "custodian/balance": 1, "custodian/supportedAssetList": 1, "custodian/walletTransferHistory": 1, "custodian/custodianTransferHistory": 1, "custodian/openOrders": 1, "custodian/order": 1, "custodian/orderHistory": 1, "custodian/tradeHistory": 1, "custodian/settlementSetting": 1, "custodian/settlementHistory": 1, "cl/transferHistory": 1, "apipartner/checkEligibility": 1, "apipartner/rebateHistory": 1, }, "post": map[string]interface{} { "otc/quotes": 1, "otc/orders": 1, "fiatpayment/withdraw/apply": 1, "capital/withdraw/apply": 1, "asset/dust": 10, "staking/stake": 1, "staking/unstake": 1, "custodian/walletTransfer": 1, "custodian/custodianTransfer": 1, "custodian/undoTransfer": 1, "custodian/order": 1, "custodian/ocoOrder": 1, "cl/transfer": 1, }, "delete": map[string]interface{} { "custodian/cancelOrder": 1, "custodian/cancelOrdersBySymbol": 1, "custodian/cancelOcoOrder": 1, }, }, "sapiV2": map[string]interface{} { "get": map[string]interface{} { "cl/account": 10, "cl/alertHistory": 1, }, }, "sapiV3": map[string]interface{} { "get": map[string]interface{} { "accountStatus": 1, "apiTradingStatus": 1, "sub-account/list": 1, "sub-account/transfer/history": 1, "sub-account/assets": 1, }, "post": map[string]interface{} { "sub-account/transfer": 1, }, }, }, "features": map[string]interface{} { "swap": map[string]interface{} { "linear": nil, "inverse": nil, }, "future": map[string]interface{} { "linear": nil, "inverse": nil, }, }, }) } func (this *binanceus) Init(userConfig map[string]interface{}) { this.binance.Init(this.DeepExtend(this.Describe(), userConfig)) this.Itf = this this.Exchange.DerivedExchange = this }