Pages:
Author

Topic: [ANN] Bittrex.com (US-based, exchange) now open to the public - page 4. (Read 49091 times)

full member
Activity: 224
Merit: 100
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?

newbie
Activity: 2
Merit: 0
i NEED PYTHON API FOR V1.1 . BOUNTY 0.005BTC
sr. member
Activity: 411
Merit: 250
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?
hero member
Activity: 826
Merit: 1000
see my profile
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://bitcointalksearch.org/topic/m.7847379

legendary
Activity: 3808
Merit: 1723
Up to 300% + 200 FS deposit bonuses
Can somebody here please post the Python wrapper for Bittrex?

Since V1.0 is ending on July 20
legendary
Activity: 3248
Merit: 1070
can you add the login history option plz, like mintpal did
legendary
Activity: 2688
Merit: 1240
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 ??!
hero member
Activity: 938
Merit: 1000
@halofirebtc
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
sr. member
Activity: 364
Merit: 250
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?
sr. member
Activity: 420
Merit: 250
it is sooooo slow to transfer bitcoin into exchange. Cry Huh
full member
Activity: 154
Merit: 100
hero member
Activity: 672
Merit: 500
http://fuk.io - check it out!
decent exchange. will help you guys with promotion.
sent PM.
newbie
Activity: 32
Merit: 0
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
legendary
Activity: 3808
Merit: 1723
Up to 300% + 200 FS deposit bonuses
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 + '¤cyPair=' + str(req['currencyPair'])))
            return json.loads(ret.read())
        elif(command == "returnMarketTradeHistory"):
            ret = urllib2.urlopen(urllib2.Request('http://poloniex.com/public?command=' + "returnTradeHistory" + '¤cyPair=' + 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})
legendary
Activity: 3808
Merit: 1723
Up to 300% + 200 FS deposit bonuses
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.
newbie
Activity: 32
Merit: 0
Just wondering if anybody have a wrapper for Bittrex?

I've started one in Go, but due to some problems with there API and the lack of support from bittrex (no response after 5 days) i've put the dev in pause.

See : https://github.com/Toorop/go-bittrex

Edit: richiela reply to me via twitter. I will finish Bittrex lib for Go asap
hero member
Activity: 937
Merit: 1000
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....
newbie
Activity: 18
Merit: 0
I can't view the website,what's happening?
legendary
Activity: 3808
Merit: 1723
Up to 300% + 200 FS deposit bonuses
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.
hero member
Activity: 826
Merit: 1000
see my profile
Feature requests:


On https://bittrex.com/Balance please add

1)
a button "hide all zero balance coins"

and zero balance coins are those with
Available balance + Pending deposit + Reserved == 0




2)
a button "go to the market of this coin"
which directly links to the coins market page.


Thanks for considering.

;-)


tip me for my ideas and work, in many
currencies: www.tiny.cc/drakointip
Pages:
Jump to: