]>
jfr.im git - irc/rizon/acid.git/blob - pyva/src/main/python/erepublik/api/exchange.py
2 from feed
import XmlFeed
5 return Exchange(XmlFeed('http://api.erepublik.com/v2/feeds/exchange/%s/%s' % (buy
, sell
)))
8 """Erepublik monetary market"""
10 def __init__(self
, f
):
12 'amount': record
.decimal('amount'),
13 'price': record
.decimal('exchange-rate'),
14 'id': record
.int('seller//id'),
15 'name': record
.text('seller//name')}
16 for record
in f
.elements('/offers/offer')]