Update api.py
This commit is contained in:
parent
3a3e3b9da2
commit
21f93f078d
@ -121,7 +121,7 @@ class Api:
|
||||
'tradeSymbol': typ.upper(),
|
||||
'units': units
|
||||
}
|
||||
data = self.request('post', f'my/contracts/{contract}/deliver', data)
|
||||
data = self.request('post', f'my/contracts/{contract.symbol.lower()}/deliver', data)
|
||||
if 'cargo' in data:
|
||||
ship.update(data)
|
||||
if 'contract' in data:
|
||||
@ -129,7 +129,7 @@ class Api:
|
||||
return contract
|
||||
|
||||
def fulfill(self, contract):
|
||||
data = self.request('post', f'my/contracts/{contract}/fulfill')
|
||||
data = self.request('post', f'my/contracts/{contract.symbol.lower()}/fulfill')
|
||||
if 'contract' in data:
|
||||
contract.update(data['contract'])
|
||||
if 'agent' in data:
|
||||
|
Loading…
Reference in New Issue
Block a user