Bitcoin Forum
March 29, 2024, 10:16:01 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: « 1 2 3 [4] 5 6 7 »  All
  Print  
Author Topic: [ANN] Bittrex.com (US-based, exchange) now open to the public  (Read 49055 times)
adaseb
Legendary
*
Offline Offline

Activity: 3710
Merit: 1699



View Profile
April 30, 2014, 11:07:00 PM
 #61

A Python wrapper for your API would be lovely.

Take poloniex as an inspiration:
http://pastebin.com/SB5c4Yr1

Another option would be to fork this
BTCE https://github.com/alanmcintyre/btce-api

because there are already versions for
BTER https://github.com/hsharrison/bter-api  and
CRYPTSY https://github.com/hsharrison/python-cryptsy



Just wondering if anybody have a wrapper for Bittrex?

Trying to copy and paste the Crytpsy and Poloniex ones and don't know what I am doing not being a programmer.

What language?  I'm sure I can whip something up for ya....

For Python would be best since the other exchanges use the same language.

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
1711707361
Hero Member
*
Offline Offline

Posts: 1711707361

View Profile Personal Message (Offline)

Ignore
1711707361
Reply with quote  #2

1711707361
Report to moderator
1711707361
Hero Member
*
Offline Offline

Posts: 1711707361

View Profile Personal Message (Offline)

Ignore
1711707361
Reply with quote  #2

1711707361
Report to moderator
Unlike traditional banking where clients have only a few account numbers, with Bitcoin people can create an unlimited number of accounts (addresses). This can be used to easily track payments, and it improves anonymity.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
adaseb
Legendary
*
Offline Offline

Activity: 3710
Merit: 1699



View Profile
April 30, 2014, 11:08:41 PM
 #62

Anyway to modify the one that was used by Cryptsy/Poloniex to use with Bittrex?



Same code below

Quote
import urllib
import urllib2
import json
import time
import hmac,hashlib

def createTimeStamp(datestr, format="%Y-%m-%d %H:%M:%S"):
    return time.mktime(time.strptime(datestr, format))

class poloniex:
    def __init__(self, APIKey, Secret):
        self.APIKey = APIKey
        self.Secret = Secret

    def post_process(self, before):
        after = before

        # Add timestamps if there isnt one but is a datetime
        if('return' in after):
            if(isinstance(after['return'], list)):
                for x in xrange(0, len(after['return'])):
                    if(isinstance(after['return']
  • , dict)):
                        if('datetime' in after['return']
  • and 'timestamp' not in after['return']
  • ):
                            after['return']
  • ['timestamp'] = float(createTimeStamp(after['return']
  • ['datetime']))
                           
        return after

    def api_query(self, command, req={}):

        if(command == "returnTicker" or command == "return24Volume"):
            ret = urllib2.urlopen(urllib2.Request('https://poloniex.com/public?command=' + command))
            return json.loads(ret.read())
        elif(command == "returnOrderBook"):
            ret = urllib2.urlopen(urllib2.Request('http://poloniex.com/public?command=' + command + '&currencyPair=' + str(req['currencyPair'])))
            return json.loads(ret.read())
        elif(command == "returnMarketTradeHistory"):
            ret = urllib2.urlopen(urllib2.Request('http://poloniex.com/public?command=' + "returnTradeHistory" + '&currencyPair=' + str(req['currencyPair'])))
            return json.loads(ret.read())
        else:
            req['command'] = command
            req['nonce'] = int(time.time()*1000)
            post_data = urllib.urlencode(req)

            sign = hmac.new(self.Secret, post_data, hashlib.sha512).hexdigest()
            headers = {
                'Sign': sign,
                'Key': self.APIKey
            }

            ret = urllib2.urlopen(urllib2.Request('https://poloniex.com/tradingApi', post_data, headers))
            jsonRet = json.loads(ret.read())
            return self.post_process(jsonRet)


    def returnTicker(self):
        return self.api_query("returnTicker")

    def return24Volume(self):
        return self.api_query("return24Volume")

    def returnOrderBook (self, currencyPair):
        return self.api_query("returnOrderBook", {'currencyPair': currencyPair})

    def returnMarketTradeHistory (self, currencyPair):
        return self.api_query("returnMarketTradeHistory", {'currencyPair': currencyPair})


    # Returns all of your balances.
    # Outputs:
    # {"BTC":"0.59098578","LTC":"3.31117268", ... }
    def returnBalances(self):
        return self.api_query('returnBalances')

    # Returns your open orders for a given market, specified by the "currencyPair" POST parameter, e.g. "BTC_XCP"
    # Inputs:
    # currencyPair  The currency pair e.g. "BTC_XCP"
    # Outputs:
    # orderNumber   The order number
    # type          sell or buy
    # rate          Price the order is selling or buying at
    # Amount        Quantity of order
    # total         Total value of order (price * quantity)
    def returnOpenOrders(self,currencyPair):
        return self.api_query('returnOpenOrders',{"currencyPair":currencyPair})


    # Returns your trade history for a given market, specified by the "currencyPair" POST parameter
    # Inputs:
    # currencyPair  The currency pair e.g. "BTC_XCP"
    # Outputs:
    # date          Date in the form: "2014-02-19 03:44:59"
    # rate          Price the order is selling or buying at
    # amount        Quantity of order
    # total         Total value of order (price * quantity)
    # type          sell or buy
    def returnTradeHistory(self,currencyPair):
        return self.api_query('returnTradeHistory',{"currencyPair":currencyPair})

    # Places a buy order in a given market. Required POST parameters are "currencyPair", "rate", and "amount". If successful, the method will return the order number.
    # Inputs:
    # currencyPair  The curreny pair
    # rate          price the order is buying at
    # amount        Amount of coins to buy
    # Outputs:
    # orderNumber   The order number
    def buy(self,currencyPair,rate,amount):
        return self.api_query('buy',{"currencyPair":currencyPair,"rate":rate,"amount":amount})

    # Places a sell order in a given market. Required POST parameters are "currencyPair", "rate", and "amount". If successful, the method will return the order number.
    # Inputs:
    # currencyPair  The curreny pair
    # rate          price the order is selling at
    # amount        Amount of coins to sell
    # Outputs:
    # orderNumber   The order number
    def sell(self,currencyPair,rate,amount):
        return self.api_query('sell',{"currencyPair":currencyPair,"rate":rate,"amount":amount})

    # Cancels an order you have placed in a given market. Required POST parameters are "currencyPair" and "orderNumber".
    # Inputs:
    # currencyPair  The curreny pair
    # orderNumber   The order number to cancel
    # Outputs:
    # succes        1 or 0
    def sell(self,currencyPair,orderNumber):
        return self.api_query('cancelOrder',{"currencyPair":currencyPair,"orderNumber":orderNumber})

    # Immediately places a withdrawal for a given currency, with no email confirmation. In order to use this method, the withdrawal privilege must be enabled for your API key. Required POST parameters are "currency", "amount", and "address". Sample output: {"response":"Withdrew 2398 NXT."}
    # Inputs:
    # currency      The currency to withdraw
    # amount        The amount of this coin to withdraw
    # address       The withdrawal address
    # Outputs:
    # response      Text containing message about the withdrawal
    def sell(self, currency, amount, address):
        return self.api_query('withdraw',{"currency":currency, "amount":amount, "address":address})

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
Toorop
Newbie
*
Offline Offline

Activity: 32
Merit: 0


View Profile
May 13, 2014, 08:07:58 AM
 #63

Edit: richiela reply to me via twitter. I will finish Bittrex lib for Go asap

Done !

Changelog :
- implements v1.1 Bittrex API
- implements new HMAC Authentification

Source : Go binding for the Bittrex crypto-currency exchange API
Doc : https://godoc.org/github.com/Toorop/go-bittrex
kingscrown
Hero Member
*****
Offline Offline

Activity: 672
Merit: 500


http://fuk.io - check it out!


View Profile WWW
June 05, 2014, 12:28:11 AM
 #64

decent exchange. will help you guys with promotion.
sent PM.

komodovpn
Full Member
***
Offline Offline

Activity: 154
Merit: 100


View Profile
June 05, 2014, 12:49:52 AM
 #65

Add Honorcoin! Cheesy

[ Minerals ] - The most fair distribution crypto
goodluck0319
Sr. Member
****
Offline Offline

Activity: 420
Merit: 250



View Profile
June 05, 2014, 03:00:55 PM
 #66

it is sooooo slow to transfer bitcoin into exchange. Cry Huh
Starscream
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250



View Profile
June 19, 2014, 12:20:16 PM
 #67

Did this exchange really take a turn and made an agreement to monopolize the alt-coin scene together with the big pools? Is this how things are handled now?
Halofire
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000


@halofirebtc


View Profile
June 22, 2014, 08:25:19 PM
 #68

Is it possible to request a certain 4 day market history from bittrex, or how can we view it?
Not the last 4 days either, I mean like if I wanted to see the market history for example: from april 14-18?
I don't need those specific dates, but shows what I mean.

Thanks! Smiley

OC Development - oZwWbQwz6LAkDLa2pHsEH8WSD2Y3LsTgFt
SMC Development - SgpYdoVz946nLBF2hF3PYCVQYnuYDeQTGu
Friendly reminder: Back up your wallet.dat files!!
ocminer
Legendary
*
Offline Offline

Activity: 2660
Merit: 1240



View Profile WWW
June 22, 2014, 08:26:43 PM
 #69

Did this exchange really take a turn and made an agreement to monopolize the alt-coin scene together with the big pools? Is this how things are handled now?

Can you explain this any further ??!

suprnova pools - reliable mining pools - #suprnova on freenet
https://www.suprnova.cc - FOLLOW us @ Twitter ! twitter.com/SuprnovaPools
Amph
Legendary
*
Offline Offline

Activity: 3206
Merit: 1069



View Profile
July 10, 2014, 09:26:30 PM
 #70

can you add the login history option plz, like mintpal did
adaseb
Legendary
*
Offline Offline

Activity: 3710
Merit: 1699



View Profile
July 11, 2014, 10:51:46 PM
 #71

Can somebody here please post the Python wrapper for Bittrex?

Since V1.0 is ending on July 20

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
drakoin
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000

see my profile


View Profile
July 14, 2014, 11:00:14 PM
 #72

A Python wrapper for your API would be lovely.

Take poloniex as an inspiration:
http://pastebin.com/SB5c4Yr1

Another option would be to fork this
BTCE https://github.com/alanmcintyre/btce-api

because there are already versions for
BTER https://github.com/hsharrison/bter-api  and
CRYPTSY https://github.com/hsharrison/python-cryptsy



I made a new version of that Poloniex API wrapper, with two more functions, and some bugs fixed:
https://bitcointalk.org/index.php?topic=463202.msg7847379#msg7847379


no sign of a signature
gaalx
Sr. Member
****
Offline Offline

Activity: 411
Merit: 250



View Profile
July 16, 2014, 02:25:17 PM
 #73

https://github.com/T...ples/bittrex.go
 
work example:
package main
 
import (
    "fmt"
    "github.com/toorop/go-bittrex"
)
 
const (
    API_KEY = ""
    API_SECRET = ""
)
 
func main() {
    // Bittrex client
    bittrex := bittrex.New(API_KEY, API_SECRET)
 
     // Get Ticker (BTC-VTC)
    /*
        ticker, err := bittrex.GetTicker("BTC-DRK")
        fmt.Println(err, ticker)
    */
}
 
keys - https://bittrex.com/Home/Api
Programming language, I so understood, GO.
 
It is request for receipt of initial information on a rate:
Judging by documentation the answer in a type shall come:
/public/getticker
Used to get the current tick values for a market.
Parameters parameter required description market required a string literal for the market (ex: BTC-LTC)
Request:https://bittrex.com/...ublic/getticker
Response{
    "success" : true,
    "message" : "",
    "result" : {
        "Bid" : 2.05670368,
        "Ask" : 3.35579531,
        "Last" : 3.35579531
    }
}
Here and the question how to give a rate and to appropriate it to any variable or it already in ticker,err  , and here err is a type shows on a data file and ticker, bid will issue me result about a purchase price?

UrbanoGT
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
July 29, 2014, 11:15:43 PM
 #74

i NEED PYTHON API FOR V1.1 . BOUNTY 0.005BTC
sdersdf2
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
August 24, 2014, 03:59:45 PM
 #75

We're looking for IPO coins to partner with.  If you are interested, please let me know.


Could you explain the original intent of this message?

xrnath
Member
**
Offline Offline

Activity: 80
Merit: 10


View Profile
September 03, 2014, 01:15:20 AM
 #76

Hi team, could we please get an update on site availability. bittrex.com appears to be offline. TYIA.

http://downforeveryoneorjustme.com/bittrex.com
Quote
It's not just you! http://bittrex.com looks down from here.
Ingramtg
Legendary
*
Offline Offline

Activity: 861
Merit: 1000



View Profile
September 03, 2014, 01:33:39 AM
 #77

We're looking for IPO coins to partner with.  If you are interested, please let me know.


Could you explain the original intent of this message?



for money Cheesy
xrnath
Member
**
Offline Offline

Activity: 80
Merit: 10


View Profile
September 03, 2014, 01:50:36 AM
 #78

Hi team, could we please get an update on site availability. bittrex.com appears to be offline. TYIA.

http://downforeveryoneorjustme.com/bittrex.com
Quote
It's not just you! http://bittrex.com looks down from here.

bittrex.com is back online.
drakoin
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000

see my profile


View Profile
October 18, 2014, 10:46:59 PM
 #79

feature request: One more column in "Your open orders"
https://bittrex.com/History


Please multiply/divide "BID/ASK" and "Units Total"
into one more column "BTC value"
- then I can order by that column, and quickly see
how much BTC I have locked into what.

Thanks a lot!

Tip me for my work: 19ff2KsUxD7B3EumxhrKRJ5qDP7yc8YQfD

no sign of a signature
drakoin
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1000

see my profile


View Profile
February 16, 2015, 06:29:55 PM
Last edit: February 17, 2015, 03:17:54 AM by drakoin
 #80

Hello Bittrex,

A trader is abusing your order book rules.
Probably with a bot, but the bot is not the problem, it's the one user.


You are truncating at 50 orders from the current price.

And that guy fills up the whole table with bullshit,
in order to hide everything outside that 2x50 range.


Latest example: SDC.
Today, 2015/02/15 around 1800 UTC.




I suggest:

1) You remove all those obvious fake orders manually.
2) You block that user for some days, and send him a link to this public complaint. When he understands it ... unblock him again, please.

I don't want to harm anyone, but I also don't want to get harmed.
And his ill behaviour is malevolently limiting the information that I can access for my trading decisions.



Long term: Please consider to re-code your order book. Better.

Either no truncation, so show the whole order book.
Perhaps with a "Load all" click, like on poloniex?


Or if you don't like that for some reasons, and want to limit your book to 50 lines:

Why not accumulate all orders around a central price into one line?
Then the question is only how much range of the total order book to show.


How much of the total order book to show makes sense?
One way is to take an average current volatility, multiply that by some constant,
and add & subtract that from the current price, to get an intelligent order book range.

Then divide that range by two times 50 steps, and accumulate around each of those steps. Easy peasy.


Recalculate the volatilty a few times per day - and only if price or volatility changes much, re-calc the 2x50 positions.
Should not be much drain on your servers. Happy to code it for you, if you pay me well.


But first send a warning to that manipulator guy now, please.

Thanks.

no sign of a signature
Pages: « 1 2 3 [4] 5 6 7 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!