Saravanan666/pypi-org huggingface dataset:
Package: bitmazk-contact-form
spam protection.Home-page: https://github.com/bitmazk/bitmazk-contact-formAuthor: Tobias LorenzAuthor-email: tobias.lorenz@bitmazk.comLicense: UNKNOWNDescription: bitmazk-contact-form====================A reusable contact form app for Django. Can be used with a modern user-friendlyspam protection or Google's reCAPTCHA. Ready for multilingual sites.At the moment this contact form does not redirect to a success page. Insteadit adds a variable ``contact_form_success`` to the template context. Thedeveloper can then just output some success message next to the form.The project can be used in conjunction with `django-cms<https://github.com/divio/django-cms>`_. Therefore the package comes with a``cms_app.py`` file and can be integrated into your CMS pages via an AppHook.Prerequisites=============- see requirements.txtInstallation============If you want to install the latest stable release from PyPi:$ pip install bitmazk-contact-formIf you feel adventurous and want to install the latest commit from GitHub:$ pip install -e git://github.com/bitmazk/bitmazk-contact-form#egg=contact_formAdd ``contact_form`` to your ``INSTALLED_APPS``::INSTALLED_APPS = ([...]'contact_form',}Add ``CONTACT_FORM_RECIPIENTS`` to your ``settings.py``::CONTACT_FORM_RECIPIENTS = (('Foo Bar', 'foobar@example.com'),)Make sure to have a block called ``contact_form`` in your template::{% block contact_form %}If the output does not fit your needs, just override the templates provided bythis package.With Django-CMS---------------Create a CMS page, assign it to the template that has the ``contact_form``block and add the ``Contact Form AppHook`` to the page.Simple spam protection----------------------Make sure you got a content block named ``extracss`` or add the relevant css sheet::{{ form.media.css }}reCAPTCHA---------First register at https://www.google.com/recaptcha/ and make sure you added allthe relevant URLs to your captcha.Install ``django-recaptcha``:pip install django-recaptchaAdd it to your installed apps.Now add the following settings::CONTACT_FORM_RECAPTCHA = TrueRECAPTCHA_PUBLIC_KEY = 'YOUR_GOOGLE_RECAPTCHA_PUBLIC_KEY'RECAPTCHA_PRIVATE_KEY = 'YOUR_GOOGLE_RECAPTCHA_PRIVATE_KEY'NOCAPTCHA = TrueRECAPTCHA_USE_SSL = True  # We assume you are using https://Configuration=============Set ``CONTACT_FORM_DISPLAY_CATEGORIES=True`` if you want the form to include alist of categories the users request is about.The categories are stored as master data and you can add them via the Djangoadmin under ``contact_form > ContactFormCategory``.Keywords: contact form django reusablePlatform: UNKNOWN
Package: bitme
================Bitme Python API================Requirementsrequests library (pip install requests)Docshttp://pythonhosted.org/bitme/UsageTake a look at example.py.  This shows how to use the accounts API call tolist your accounts.  It also shows how you can store your API information infiles (to prevent it getting into committed code).hank@crow$ python example.py{u'accounts': [{u'currency_name': u'Bitcoin',u'available': u'0.06979500000000000000', u'currency_cd': u'BTC',u'balance': u'0.06979500000000000000'},{u'currency_name': u'Litecoin', u'available': u'0.00000000000000000000',u'currency_cd': u'LTC', u'balance': u'95.00000000000000000000'}]}Linkshttps://pypi.python.org/pypi/bitme
Package: bitmex-async-rest
BitMEX Async-RestAsync Rest API implementation for BitMEX cryptocurrency derivatives exchange.Free software: MIT licenseFeaturesSupports authenticated connections using api keys.Based on asks and anyio. Should work on all anyio supported event loops.Non-featuresThis is a beta api. Methods are probably named badly and a lot of stuff you might want is missing.InstallationThis library requires Python 3.7 or greater.To install from PyPI:pip install bitmex-async-restClient exampleTODOAPIRead the source code. (Welp..)This library does not do retrys. If you get overload or similar errors, it is up to the client to handle them.CreditsThanks to theTrio,Curio, [AnyIO] (https://github.com/agronholm/anyio) andaskslibraries for their awesome work.
Package: bitmex-backtest
bitmex-backtestbitmex-backtest is a python library for backtest with bitmex fx trade rest api on Python 3.7 and above.Installation$ pip install bitmex-backtestUsagebasicfrombitmex_backtestimportBacktestbt=Backtest()bt.candles("XBTUSD")fast_ma=bt.sma(period=5)slow_ma=bt.sma(period=25)bt.sell_exit=bt.buy_entry=(fast_ma>slow_ma)&(fast_ma.shift()<=slow_ma.shift())bt.buy_exit=bt.sell_entry=(fast_ma<slow_ma)&(fast_ma.shift()>=slow_ma.shift())bt.run()bt.plot()advancedfrombitmex_backtestimportBacktestbt=Backtest(test=True)filepath="xbtusd-60.csv"ifbt.exists(filepath):bt.read_csv(filepath)else:params={"resolution":"60",# 1 hour candlesticks (default=1) 1,3,5,15,30,60,120,180,240,360,720,1D,3D,1W,2W,1M"count":"5000"# 5000 candlesticks (default=500)}bt.candles("XBTUSD",params)bt.to_csv(filepath)fast_ma=bt.sma(period=10)slow_ma=bt.sma(period=30)exit_ma=bt.sma(period=5)bt.buy_entry=(fast_ma>slow_ma)&(fast_ma.shift()<=slow_ma.shift())bt.sell_entry=(fast_ma<slow_ma)&(fast_ma.shift()>=slow_ma.shift())bt.buy_exit=(bt.C<exit_ma)&(bt.C.shift()>=exit_ma.shift())bt.sell_exit=(bt.C>exit_ma)&(bt.C.shift()<=exit_ma.shift())bt.quantity=100# default=1bt.stop_loss=200# stop loss (default=0)bt.take_profit=1000# take profit (default=0)print(bt.run())bt.plot("backtest.png")totalprofit-342200.000totaltrades162.000winrate32.716profitfactor0.592maximumdrawdown470950.000recoveryfactor-0.727riskrewardratio1.295sharperatio-0.127averagereturn-20.325stoploss23.000takeprofit1.000Supported indicatorsSimple Moving Average 'sma'Exponential Moving Average 'ema'Moving Average Convergence Divergence 'macd'Relative Strenght Index 'rsi'Bollinger Bands 'bband'Stochastic Oscillator 'stoch'Market Momentum 'mom'Getting startedFor help getting started with bitmex REST API, view our onlinedocumentation.ContributingFork itCreate your feature branch (git checkout -b my-new-feature)Commit your changes (git commit -am 'Add some feature')Push to the branch (git push origin my-new-feature)Create new Pull Request
Package: bitmex-client
## REST API for the BitMEX Trading Platform  [Changelog](/app/apiChangelog)  —-  #### Getting Started   ##### Fetching Data  All REST endpoints are documented below. You can try out any query right from this interface.  Most table queries accept &#x60;count&#x60;, &#x60;start&#x60;, and &#x60;reverse&#x60; params. Set &#x60;reverse&#x3D;true&#x60; to get rows newest-first.  Additional documentation regarding filters, timestamps, and authentication is available in [the main API documentation](https://www.bitmex.com/app/restAPI).Alltable data is available via the [Websocket](/app/wsAPI). We highly recommend using the socket if you want to have the quickest possible data without being subject to ratelimits.  ##### Return Types  By default, all data is returned as JSON. Send &#x60;?_format&#x3D;csv&#x60; to get CSV data or &#x60;?_format&#x3D;xml&#x60; to get XML data.  ##### Trade Data QueriesThis is only a small subset of what is available, to get you started.Fill in the parameters and click the &#x60;Try it out!&#x60; button to try any of these queries.  * [Pricing Data](#!/Quote/Quote_get)  * [Trade Data](#!/Trade/Trade_get)  * [OrderBook Data](#!/OrderBook/OrderBook_getL2)  * [Settlement Data](#!/Settlement/Settlement_get)  * [Exchange Statistics](#!/Stats/Stats_history)  Every function of the BitMEX.com platform is exposed here and documented. Many more functions are available.  —-  ## All API Endpoints  Click to expand a section.
Package: bitmex-liquidation
BitMEX LiquidationMinimal code to show how to receive the liquidations in realtime on Bitmex. It does work and does not hang randomly.Installationvirtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txtRunpython example.py               # All instruments.
python example.py XBTUSD        # Only XBTUSD.And be patient! You might have to wait more than one hour to see your first liquidation.Browse this link for more information:https://app.rek.to/.Output2019-11-10 16:33:11,486 - Connecting to wss://www.bitmex.com/realtime?subscribe=liquidation.
2019-11-10 16:33:11,486 - Connected to WS.
2019-11-10 16:33:12,478 - Websocket Opened.
2019-11-10 16:33:12,479 - [<] Welcome to the BitMEX Realtime API.
2019-11-10 16:33:12,479 - [<] Subscribed to liquidation.
2019-11-10 16:33:16,493 - Symbol    B/S   USD Value   Quantity  @   Price     Time
2019-11-10 17:02:34,396 - EOSZ19    Buy   0           600       @   0.0004007 2019-11-10 17:02:34.396
2019-11-10 17:30:08,324 - XBTUSD    Sell  68,000      68,000    @   8829.5    2019-11-10 17:30:08.324
2019-11-10 17:30:14,103 - XBTUSD    Sell  807         807       @   8827.0    2019-11-10 17:30:14.103
2019-11-10 18:44:40,254 - XBTUSD    Sell  1,013       1,013     @   8818.5    2019-11-10 18:44:40.254MessagesThis message corresponds to the first line of the banner:{"table":"liquidation","action":"insert","data":[{"orderID":"8b4a95db-815a-f93a-c9a2-ffbbabeddbac","symbol":"TRXZ19","side":"Buy","price":2.17e-06,"leavesQty":5000}]}
Package: bitmex-websocket
Install$pipinstallbitmex-websocketUsageFirst you should set yourBITMEX_API_KEYandBITMEX_API_SECRET. It can
be done as follows:$cp.env.example.env#  edit .env to reflect your API key and secret$source.envThen in your project you can consumeInstrumentas follows:importwebsocketfrombitmex_websocketimportInstrumentfrombitmex_websocket.constantsimportInstrumentChannelswebsocket.enableTrace(True)channels=[InstrumentChannels.quote,InstrumentChannels.trade,InstrumentChannels.orderBookL2]XBTUSD=Instrument(symbol='XBTUSD',channels=channels)XBTUSD.on('action',lambdamsg:print(msg))XBTUSD.run_forever()TestNetYou may change theBASE_URLby setting theBITMEX_BASE_URLenvironment variable to:https://testnet.bitmex.com/api/v1/.ExamplesRun example scripts:$./examples/example.pyTestsTesting is set up usingpytest <http://pytest.org>and coverage is handled
with the pytest-cov plugin.Run your tests withpytestin the root directory.Coverage is ran by default and is set in thepytest.inifile.
To see an html output of coverage openhtmlcov/index.htmlafter running the tests.
Package: bitmex-ws
# Python Adapter for BitMEX Realtime DataThis is a reference adapter for receiving realtime data from the BitMEX API. See [the BitMEX documentation](https://testnet.bitmex.com/app/wsAPI)
for more information on the websocket API.# Installationpip install bitmex-ws# QuickstartBitMEXWebsocketis the main entry point to connect to the BitMEX websocket API. The API supports both authenticated
and unauthenticated clients. Some endpoints require credentials, for more info see
[the documentation on authentication.](https://testnet.bitmex.com/app/wsAPI#Authentication)To get started, instantiate a connection:from bitmex_websocket import BitMEXWebsocket
ws = BitMEXWebsocket(endpoint=”wss://ws.testnet.bitmex.com/realtime”, symbol=”XBTUSD”, api_key=None, api_secret=None)If you want to subscribe to authenticated data streams, [create an API key](https://testnet.bitmex.com/app/apiKeys) and
supply the corresponding values inapi_keyandapi_secret. BitMEX has two systems -testnetfor simulated
trading and testing, andwwwfor live trading. API keys are specific to one system. If you created the key on testnet,
make sure your connection string points to testnet as well.Once you are connected, you can retrieve data via the connector’s methods. The latest data will be streamed to the
client - no need to poll the server.ws.get_instrument()
ws.get_ticker()
ws.funds()
ws.market_depth()
ws.open_orders()
ws.recent_trades()main.pyhas a full example of how to connect to BitMEX:$ python main.py
2018-02-01 11:51:53,355 - bitmex_websocket - INFO - Connecting to wss://testnet.bitmex.com/realtime?subscribe=execution:XBTUSD,instrument:    …
2018-02-01 11:51:53,356 - bitmex_websocket - INFO - Not authenticating.
2018-02-01 11:51:54,357 - bitmex_websocket - INFO - Connected to WS.
2018-02-01 11:51:54,360 - bitmex_websocket - INFO - Got all market data. Starting.
2018-02-01 11:51:54,364 - root - INFO - Ticker: {‘last’: 8947.0, ‘sell’: 8948.0, ‘buy’: 8947.0, ‘mid’: 8947.0}
2018-02-01 11:51:54,369 - root - INFO - Market Depth: [{‘id’: 15500000950, ‘side’: ‘Sell’, ‘size’: 384, ‘price’: 999990.5, ‘symbol’: ‘XBTUSD’ …
2018-02-01 11:51:54,370 - root - INFO - Recent Trades: [{‘side’: ‘Sell’, ‘size’: 29856, ‘price’: 8947, ‘symbol’: ‘XBTUSD’, ‘timestamp’:       …# Compatibility
This module supports Python 3.5+.
Package: bitmex-ws-alpha
# Python Adapter for BitMEX Realtime DataThis is a reference adapter for receiving realtime data from the BitMEX API. See [the BitMEX documentation](https://testnet.bitmex.com/app/wsAPI)
for more information on the websocket API.# Installationpip install bitmex-ws# QuickstartBitMEXWebsocketis the main entry point to connect to the BitMEX websocket API. The API supports both authenticated
and unauthenticated clients. Some endpoints require credentials, for more info see
[the documentation on authentication.](https://testnet.bitmex.com/app/wsAPI#Authentication)To get started, instantiate a connection:from bitmex_websocket import BitMEXWebsocket
ws = BitMEXWebsocket(endpoint=”https://testnet.bitmex.com/api/v1”, symbol=”XBTUSD”, api_key=None, api_secret=None)If you want to subscribe to authenticated data streams, [create an API key](https://testnet.bitmex.com/app/apiKeys) and
supply the corresponding values inapi_keyandapi_secret. BitMEX has two systems -testnetfor simulated
trading and testing, andwwwfor live trading. API keys are specific to one system. If you created the key on testnet,
make sure your connection string points to testnet as well.Once you are connected, you can retrieve data via the connector’s methods. The latest data will be streamed to the
client - no need to poll the server.ws.get_instrument()
ws.get_ticker()
ws.funds()
ws.market_depth()
ws.open_orders()
ws.recent_trades()main.pyhas a full example of how to connect to BitMEX:$ python main.py
2018-02-01 11:51:53,355 - bitmex_websocket - INFO - Connecting to wss://testnet.bitmex.com/realtime?subscribe=execution:XBTUSD,instrument:    …
2018-02-01 11:51:53,356 - bitmex_websocket - INFO - Not authenticating.
2018-02-01 11:51:54,357 - bitmex_websocket - INFO - Connected to WS.
2018-02-01 11:51:54,360 - bitmex_websocket - INFO - Got all market data. Starting.
2018-02-01 11:51:54,364 - root - INFO - Ticker: {‘last’: 8947.0, ‘sell’: 8948.0, ‘buy’: 8947.0, ‘mid’: 8947.0}
2018-02-01 11:51:54,369 - root - INFO - Market Depth: [{‘id’: 15500000950, ‘side’: ‘Sell’, ‘size’: 384, ‘price’: 999990.5, ‘symbol’: ‘XBTUSD’ …
2018-02-01 11:51:54,370 - root - INFO - Recent Trades: [{‘side’: ‘Sell’, ‘size’: 29856, ‘price’: 8947, ‘symbol’: ‘XBTUSD’, ‘timestamp’:       …# Compatibility
This module supports Python 3.5+.
Package: bitmex-ws-onix
# Python Adapter for BitMEX Realtime DataThis is a reference adapter for receiving realtime data from the BitMEX API. See [the BitMEX documentation](https://testnet.bitmex.com/app/wsAPI)
for more information on the websocket API.# Installationpip install bitmex-ws# QuickstartBitMEXWebsocketis the main entry point to connect to the BitMEX websocket API. The API supports both authenticated
and unauthenticated clients. Some endpoints require credentials, for more info see
[the documentation on authentication.](https://testnet.bitmex.com/app/wsAPI#Authentication)To get started, instantiate a connection:from bitmex_websocket import BitMEXWebsocket
ws = BitMEXWebsocket(endpoint=”https://testnet.bitmex.com/api/v1”, symbol=”XBTUSD”, api_key=None, api_secret=None)If you want to subscribe to authenticated data streams, [create an API key](https://testnet.bitmex.com/app/apiKeys) and
supply the corresponding values inapi_keyandapi_secret. BitMEX has two systems -testnetfor simulated
trading and testing, andwwwfor live trading. API keys are specific to one system. If you created the key on testnet,
make sure your connection string points to testnet as well.Once you are connected, you can retrieve data via the connector’s methods. The latest data will be streamed to the
client - no need to poll the server.ws.get_instrument()
ws.get_ticker()
ws.funds()
ws.market_depth()
ws.open_orders()
ws.recent_trades()main.pyhas a full example of how to connect to BitMEX:$ python main.py
2018-02-01 11:51:53,355 - bitmex_websocket - INFO - Connecting to wss://testnet.bitmex.com/realtime?subscribe=execution:XBTUSD,instrument:    …
2018-02-01 11:51:53,356 - bitmex_websocket - INFO - Not authenticating.
2018-02-01 11:51:54,357 - bitmex_websocket - INFO - Connected to WS.
2018-02-01 11:51:54,360 - bitmex_websocket - INFO - Got all market data. Starting.
2018-02-01 11:51:54,364 - root - INFO - Ticker: {‘last’: 8947.0, ‘sell’: 8948.0, ‘buy’: 8947.0, ‘mid’: 8947.0}
2018-02-01 11:51:54,369 - root - INFO - Market Depth: [{‘id’: 15500000950, ‘side’: ‘Sell’, ‘size’: 384, ‘price’: 999990.5, ‘symbol’: ‘XBTUSD’ …
2018-02-01 11:51:54,370 - root - INFO - Recent Trades: [{‘side’: ‘Sell’, ‘size’: 29856, ‘price’: 8947, ‘symbol’: ‘XBTUSD’, ‘timestamp’:       …# Compatibility
This module supports Python 3.5+.
Package: bitnesslib
bitnesslibA Python library with one simple purpose: given a binary, determine its bitness.Installationpip install bitnesslibUsage example>>>importbitnesslib>>>bitnesslib.get_bitness('C:/Windows/System32/calc.exe')64>>>bitnesslib.get_bitness('C:/Windows/SysWOW64/calc.exe')32Supported file formatsMZ & PEELFMach-OIDA databases (.idb&.i64)Minidump
Package: bitnet
BitNetImplementation of the "BitNet: Scaling 1-bit Transformers for Large Language Models"Paper link:BitLinear = tensor -> layernorm -> Binarize -> abs max quantization -> dequant"The implementation of the BitNet architecture is quite simple, requiring only the replacement of linear projections (i.e., nn.Linear in PyTorch) in the Transformer. " -- BitNet is really easy to implement just swap out the linears with the BitLinear modules!NEWSBitNet Transformer has been trained using thetrain.pyfile that trains on enwiki8 a small 1gb dataset of wikipedia:HERE IS THE LINKAppreciationDimitry, Nullonix for analysis and code review and revisionVyom, for providing 4080 to train!Installationpip install bitnetUsage:BitLinearExample of the BitLinear layer which is the main innovation of the paper!importtorchfrombitnetimportBitLinear# Inputx=torch.randn(10,512)# BitLinear layerlayer=BitLinear(512,400)# Outputy=layer(x)print(y)BitNetTransformerFully implemented Transformer as described in the diagram with MHA, and BitFeedforwardsCan be utilized not just for text but for images and maybe even video or audio processingComplete with residuals and skip connections for gradient flowimporttorchfrombitnetimportBitNetTransformerbitnet=BitNetTransformer(num_tokens=20000,dim=512,depth=6,dim_head=64,heads=8,ff_mult=4,)tokens=torch.randint(0,20000,(1,512))logits=bitnet(tokens)print(logits.shape)BitFeedForwardFeedforward as shown in the diagram with BitLinear and a GELU:Linear -> GELU -> LinearYou can add dropouts, or layernorms, or other layers for a better ffnimporttorchfrombitnet.bitffnimportBitFeedForward# Random inputx=torch.randn(10,512)# FFNff=BitFeedForward(512)# Apply FFNy=ff(x)print(y.shape)# torch.Size([10, 512])InferencefrombitnetimportBitNetInferencebitnet=BitNetInference()bitnet.load_model('../model_checkpoint.pth')#Download modeloutput_str=bitnet.generate("The dog jumped over the ",512)print(output_str)LicenseMITCitation@misc{2310.11453,Author={Hongyu Wang and Shuming Ma and Li Dong and Shaohan Huang and Huaijie Wang and Lingxiao Ma and Fan Yang and Ruiping Wang and Yi Wu and Furu Wei},Title={BitNet: Scaling 1-bit Transformers for Large Language Models},Year={2023},Eprint={arXiv:2310.11453},}TodoDouble check BitLinear implementation and make sure it works exactly as in paperImplement training script forBitNetTransformerTrain on Enwiki8, copy and past code and data from Lucidrains reposBenchmark performanceLook into Straight Through Estimator for non-differentiable backpropImplement BitFeedForwardClean up codebaseAdd unit tests for each module
Package: bitninja-ninjarpc
BitNinjaIO NinjaRPCRabbitMQ rpc server and client byBitNinja.iobased onPHP implementationUsageThe package contains a client, and a server as well, which can communicate with each other.Server# import the packagefromninjarpcimportServerfromninjarpc.EncodersimportJsonEncoderfromninjarpc.RoutersimportSimpleRouterfromninjarpc.QueueManagersimportRabbitMQdefendpoint_handler(params):print(f'endpoint was called with{params}parameters.')if__name__=='__main__':queue_manager=RabbitMQ(host='hostname',port='port',username='username',password='password')encoder=JsonEncoder()endpoints={"endpoint":endpoint_handler}router=SimpleRouter(endpoints)server=Server('TEST_SERVICE',queue_manager,encoder,router)whileTrue:server.listen()Client# import the packagefromninjarpcimportClientfromninjarpc.EncodersimportJsonEncoderfromninjarpc.ExceptionsimportCallTimeoutExceptionfromninjarpc.QueueManagersimportRabbitMQif__name__=='__main__':queue_manager=RabbitMQ(host='hostname',port='port',username='username',password='password')encoder=JsonEncoder()client=Client(queue_manager,encoder)call=client.async_call(service_name='TEST_SERVICE',method_name='endpoint',parameters=())try:result=call.wait()exceptCallTimeoutExceptionase:print('Call timeouted')
Package: bit-notify
# bit-notifySMS notifier for bittrex## Installation```$ pip install bit-notify```### Install from source```$ git clone  https://github.com/hthompson6/bit-notify.git$ cd bit-notify$ python setup.py install -e .```## UsagePlease note that this service relies on Twilio. To sign up for Twilio pleasevisit https://www.twilio.com/try-twilio.```pythonapi_key = 'my_bittrex_api_key'api_sign = 'my_bittrex_api_secret'account_sid = 'my_twilio_account_sid'auth_token = 'my_twilio_auth_token'sender = '<country_code><my_twilio_phone_number>'reciever = '<country_code><my_personal_phone_number>'notify = Notifier(api_key, api_sign, account_sid, auth_token, sender, reciever)notify.start()notify.kill_thread()```### Advanced UsageNotifications occur when the percent change over a 24hr span of timelies outside of the given threshold. (Updates to this percentage arechecked every 30 minutes.)The default is as follows: **-100% < %change < 100%**To alter the threshold simply modify the class instatiaion:```pythonnotify = Notifier(api_key, api_sign, account_sid, auth_token,sender, reciever, lower_bound=-15, upper_bound=50)notify.start()```
Package: bitopro
bitopro-api-pythonSDK for theBitoProAPI.Bitopro official API documentInstallationpipinstallbitopro-clientLinuxcd~/&&gitclonehttps://github.com/bitoex/bitopro-api-python.gitcd~/bitopro-api-python&&cpbitopro/sample_test.py.# update API key and secret# vim sample_test.pypython3sample_test.pyWindowscd%USERPROFILE%\Downloads
git clone https://github.com/bitoex/bitopro-api-python.gitcdbitopro-api-pythoncdbitopro

# update API key and secret
# notepad sample_test.py

python3 sample_test.pyGetting startedCreate BitoPro client. Pass api keys only if
you are going to do authenticated calls. You can create an api keyhere.bitopro_client=BitoproRestfulClient('apiKey','apiSecret')LimitationsRate LimitThere is rate limits applied to each API, please checkAPI documentationfor more detail.PrecisionsBoth price and amount are subject to decimal restrictions, please checkofficial settingsfor more detail.Minimum order amountCheckout theofficial settingsof minimum amount.Public restful enpoint examplefrombitopro_restful_clientimportBitoproRestfulClient,CandlestickResolutinif__name__=='__main__':bitopro_client=BitoproRestfulClient('apiKey','apiSecret')'''Open restful test'''# [GET] list of currenciesresponse=bitopro_client.get_currencies()print("List of currencies: ",response)# [GET] limitations and feesresponse=bitopro_client.get_limitations_and_fees()print("List of currencies: ",response)# [GET] order bookpair="BTC_USDT"response=bitopro_client.get_order_book(pair)print("Order book: ",response)# [GET] tickersresponse=bitopro_client.get_tickers(pair)print("Tickers: ",response)# [GET] tradesresponse=bitopro_client.get_trades(pair)print("Trades: ",response)# [GET] candlestickresponse=bitopro_client.get_candlestick(pair,CandlestickResolutin._1d,1650707415,1678355415)print("Candlestick: ",response)# [GET] trading pairsresponse=bitopro_client.get_trading_pairs()print("Trading pairs: ",response)